From 27b6f9ce7b12f82599f95f296abe7bb8942a6041 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sat, 29 Nov 2014 12:31:21 -0500 Subject: 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. --- src/interfaces/libpq/fe-connect.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/interfaces/libpq/fe-connect.c') 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 @@ -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) { -- cgit v1.2.3