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:31:21 -0500 |
commit | 2cda889984a6f5ad405318f9e91202d258383b66 (patch) | |
tree | 3cad6fed2c6f5436fb4bd3e49f15a12b149f4d92 /src/bin | |
parent | 816e10d80033dd74b3b76fdfd84dffb767316c54 (diff) | |
download | postgresql-2cda889984a6f5ad405318f9e91202d258383b66.tar.gz |
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')
-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 62ea0440ef..eb281a3dcb 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")); |