mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Revert "Add libpq function PQhostaddr()."
This reverts commit 9f80f4835a
. 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.
This commit is contained in:
@ -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"));
|
||||
|
Reference in New Issue
Block a user