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

Function PQhostaddr

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

Source from the content-addressed store, hash-verified

6885}
6886
6887char *
6888PQhostaddr(const PGconn *conn)
6889{
6890 if (!conn)
6891 return NULL;
6892
6893 /* Return the parsed IP address */
6894 if (conn->connhost != NULL && conn->connip != NULL)
6895 return conn->connip;
6896
6897 return "";
6898}
6899
6900char *
6901PQport(const PGconn *conn)

Callers 2

exec_command_conninfoFunction · 0.85
do_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected