mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Revert "Add libpq function PQhostaddr()."
This reverts commit 9f80f4835a
. The
function returned the raw value of a connection parameter, a task served
by PQconninfo(). The next commit will reimplement the psql \conninfo
change that way. Back-patch to 9.4, where that commit first appeared.
This commit is contained in:
@ -5340,14 +5340,6 @@ PQhost(const PGconn *conn)
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
PQhostaddr(const PGconn *conn)
|
||||
{
|
||||
if (!conn)
|
||||
return NULL;
|
||||
return conn->pghostaddr;
|
||||
}
|
||||
|
||||
char *
|
||||
PQport(const PGconn *conn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user