pgsql: Remove no-longer-appropriate special case in psql's \conninfo co

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove no-longer-appropriate special case in psql's \conninfo co
Date: 2018-08-03 16:21:02
Message-ID: E1flcp4-0003Hx-KI@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d8b2beb269c9606513a1693ac2e21586aa693e1a

Modified Files
--------------
src/bin/psql/command.c | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-08-03 20:04:36 Re: pgsql: Address set of issues with errno handling
Previous Message Amit Kapila 2018-08-03 06:31:37 pgsql: Fix buffer usage stats for parallel nodes.