aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2014-11-29 12:31:21 -0500
committerNoah Misch <noah@leadboat.com>2014-11-29 12:34:12 -0500
commit27b6f9ce7b12f82599f95f296abe7bb8942a6041 (patch)
tree7ac933ce5f86d1e102019f484888d8d80a5ba467 /src/interfaces
parent866c6ab456f97478ad7b316a8c9fbf7c9e9a3143 (diff)
downloadpostgresql-27b6f9ce7b12f82599f95f296abe7bb8942a6041.tar.gz
postgresql-27b6f9ce7b12f82599f95f296abe7bb8942a6041.zip
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')
-rw-r--r--src/interfaces/libpq/exports.txt1
-rw-r--r--src/interfaces/libpq/fe-connect.c8
-rw-r--r--src/interfaces/libpq/libpq-fe.h1
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 d17a4a86cc5..527ec9be2f1 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -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)
{
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);