diff options
| author | Noah Misch | 2014-11-29 17:31:21 +0000 |
|---|---|---|
| committer | Noah Misch | 2014-11-29 17:31:21 +0000 |
| commit | 2cda889984a6f5ad405318f9e91202d258383b66 (patch) | |
| tree | 3cad6fed2c6f5436fb4bd3e49f15a12b149f4d92 /src/interfaces/libpq | |
| parent | 816e10d80033dd74b3b76fdfd84dffb767316c54 (diff) | |
Revert "Add libpq function PQhostaddr()."
This reverts commit 9f80f4835a55a1cbffcda5d23a617917f3286c14. 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.
Diffstat (limited to 'src/interfaces/libpq')
| -rw-r--r-- | src/interfaces/libpq/exports.txt | 1 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-connect.c | 8 | ||||
| -rw-r--r-- | src/interfaces/libpq/libpq-fe.h | 1 |
3 files changed, 0 insertions, 10 deletions
diff --git a/src/interfaces/libpq/exports.txt b/src/interfaces/libpq/exports.txt index cbb6e36c119..93da50df311 100644 --- a/src/interfaces/libpq/exports.txt +++ b/src/interfaces/libpq/exports.txt @@ -165,4 +165,3 @@ lo_lseek64 162 lo_tell64 163 lo_truncate64 164 PQconninfo 165 -PQhostaddr 166 diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 703cbac37ae..3af222b5a09 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -5341,14 +5341,6 @@ PQhost(const PGconn *conn) } char * -PQhostaddr(const PGconn *conn) -{ - if (!conn) - return NULL; - return conn->pghostaddr; -} - -char * PQport(const PGconn *conn) { if (!conn) diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h index 80591728a0f..b81dc16285f 100644 --- a/src/interfaces/libpq/libpq-fe.h +++ b/src/interfaces/libpq/libpq-fe.h @@ -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); |
