]> granicus.if.org Git - postgresql/commit
Remove no-longer-appropriate special case in psql's \conninfo code.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Aug 2018 16:20:47 +0000 (12:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Aug 2018 16:20:47 +0000 (12:20 -0400)
commited5d8196c0cc769f9e893a59d184ca7efa1fe20a
tree0d8a2ba7e922fc3a83639d357a4f3aaf64eafb02
parent8d00858bafb50a8fb06c7e9482af2bfef2eebc75
Remove no-longer-appropriate special case in psql's \conninfo code.

\conninfo prints the results of PQhost() and some other libpq functions.
It used to override the PQhost() result with the hostaddr parameter if
that'd been given, but that's unhelpful when multiple hosts were listed
in the connection string.  Furthermore, it seems unnecessary in the wake
of commit 1944cdc98, since PQhost does any useful substitution itself.
So let's just remove the extra code and print PQhost()'s result without
any editorialization.

Back-patch to v10, as 1944cdc98 (just) was.

Discussion: https://postgr.es/m/23287.1533227021@sss.pgh.pa.us
src/bin/psql/command.c