diff options
author | Noah Misch <noah@leadboat.com> | 2014-11-29 12:31:21 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2014-11-29 12:34:12 -0500 |
commit | 27b6f9ce7b12f82599f95f296abe7bb8942a6041 (patch) | |
tree | 7ac933ce5f86d1e102019f484888d8d80a5ba467 /src/bin/psql/command.c | |
parent | 866c6ab456f97478ad7b316a8c9fbf7c9e9a3143 (diff) | |
download | postgresql-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/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 2e893599081..58052876d69 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -302,7 +302,7 @@ exec_command(const char *cmd, else if (strcmp(cmd, "conninfo") == 0) { char *db = PQdb(pset.db); - char *host = (PQhostaddr(pset.db) != NULL) ? PQhostaddr(pset.db) : PQhost(pset.db); + char *host = PQhost(pset.db); if (db == NULL) printf(_("You are currently not connected to a database.\n")); |