postgresql/src/bin/psql
Tom Lane c7a8f78677 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
2018-08-03 12:20:47 -04:00
..
po Translation updates 2018-06-25 12:37:18 +02:00
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
command.c Remove no-longer-appropriate special case in psql's \conninfo code. 2018-08-03 12:20:47 -04:00
command.h Add \if support to pgbench 2018-03-22 17:42:03 +03:00
common.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
common.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
copy.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
copy.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
create_help.pl Restrict vertical tightness to parentheses in Perl code 2018-05-09 10:14:46 -04:00
crosstabview.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
crosstabview.h Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
describe.c psql: Add option for procedures to \df 2018-07-24 11:38:53 +02:00
describe.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
help.c psql: Add option for procedures to \df 2018-07-24 11:38:53 +02:00
help.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
input.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
input.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
large_obj.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
large_obj.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
mainloop.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
mainloop.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls.mk Translation updates 2017-08-07 13:55:34 -04:00
prompt.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
prompt.h Add \if support to pgbench 2018-03-22 17:42:03 +03:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
psqlscanslash.l Add \if support to pgbench 2018-03-22 17:42:03 +03:00
settings.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
startup.c Avoid misleading psql password prompt when username is multiply specified. 2018-01-29 12:57:09 -05:00
stringutils.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
stringutils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
tab-complete.c pgindent run prior to branching 2018-06-30 12:25:49 -04:00
tab-complete.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
variables.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
variables.h Update copyright for 2018 2018-01-02 23:30:12 -05:00