Re: fix psql \conninfo & \connect when using hostaddr
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Artur Zakirov <a.zakirov@postgrespro.ru>,
Robert Haas <robertmhaas@gmail.com>
Date: 2018-11-17T14:58:14Z
Lists: pgsql-hackers
Hello Pavel, > I think so some redundant messages can be reduced - see function > printConnInfo - attached patch I thought about doing like that, but I made the debatable choice to keep the existing redundancy because it minimizes diffs and having a print-to-stdout special function does not look like a very clean API, as it cannot really be used by non CLI clients. -- Fabien.
Commits
-
Tweak libpq's PQhost, PQhostaddr, and psql's \connect
- 313f56ce2d1b 12.0 landed
-
psql: Show IP address in \conninfo
- 6e5f8d489acc 12.0 landed