pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove no-longer-appropriate special case in psql's \conninfo co
Date: Fri, 03 Aug 2018 16:21:02 +0000
Message-ID: <E1flcp4-0003Hx-KI@gemulon.postgresql.org> (raw)

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(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1flcp4-0003Hx-KI@gemulon.postgresql.org>
Permalink:  ../E1flcp4-0003Hx-KI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1flcp4-0003Hx-KI@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove no-longer-appropriate special case in psql's \conninfo co
  In-Reply-To: <E1flcp4-0003Hx-KI@gemulon.postgresql.org>
  References: <E1flcp4-0003Hx-KI@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox