MCPcopy Create free account
hub / github.com/apache/cloudberry / PQport

Function PQport

src/interfaces/libpq/fe-connect.c:6900–6910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6898}
6899
6900char *
6901PQport(const PGconn *conn)
6902{
6903 if (!conn)
6904 return NULL;
6905
6906 if (conn->connhost != NULL)
6907 return conn->connhost[conn->whichhost].port;
6908
6909 return "";
6910}
6911
6912/*
6913 * No longer does anything, but the function remains for API backwards

Callers 7

libpqrcv_get_senderinfoFunction · 0.85
exec_command_conninfoFunction · 0.85
do_connectFunction · 0.85
SyncVariablesFunction · 0.85
get_promptFunction · 0.85
mainFunction · 0.85
main.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected