1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +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:
Noah Misch
2014-11-29 12:31:21 -05:00
parent 866c6ab456
commit 27b6f9ce7b
5 changed files with 1 additions and 29 deletions

View File

@@ -165,4 +165,3 @@ lo_lseek64 162
lo_tell64 163
lo_truncate64 164
PQconninfo 165
PQhostaddr 166

View File

@@ -5339,14 +5339,6 @@ PQhost(const PGconn *conn)
}
}
char *
PQhostaddr(const PGconn *conn)
{
if (!conn)
return NULL;
return conn->pghostaddr;
}
char *
PQport(const PGconn *conn)
{

View File

@@ -301,7 +301,6 @@ extern char *PQdb(const PGconn *conn);
extern char *PQuser(const PGconn *conn);
extern char *PQpass(const PGconn *conn);
extern char *PQhost(const PGconn *conn);
extern char *PQhostaddr(const PGconn *conn);
extern char *PQport(const PGconn *conn);
extern char *PQtty(const PGconn *conn);
extern char *PQoptions(const PGconn *conn);