Re: fix psql \conninfo & \connect when using hostaddr
Dmitry Dolgov <9erthalion6@gmail.com>
From: Dmitry Dolgov <9erthalion6@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>,
Alvaro Herrera <alvherre@2ndquadrant.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>, Arthur Zakirov <a.zakirov@postgrespro.ru>,
Robert Haas <robertmhaas@gmail.com>
Date: 2019-06-12T07:48:50Z
Lists: pgsql-hackers
> On Wed, Jun 12, 2019 at 9:45 AM Noah Misch <noah@leadboat.com> wrote: > > On Tue, Jun 11, 2019 at 01:59:20PM +0200, Dmitry Dolgov wrote: > > > On Tue, Jun 11, 2019 at 6:46 AM Fabien COELHO <coelho@cri.ensmp.fr> wrote: > > > > > Although I guess it can be avoided by `-reuse-previous=off`, probably it > > > > makese sense to update the docs. > > > > > > Yep, that is one option. The other is to revert or alter the subtle > > > change, but ISTM that it made sense in some use case, so I wanted some > > > time to think about it and test. > > > > Sure, no one argue that the behaviour should be changed, it's only about the > > documentation part. > > No, I was arguing that a behavior should revert back its v11 behavior: > > \connect mydb myuser myhost > -- should resolve "myhost" again, like it did in v11 > \connect > > \connect "dbname=mydb host=myhost hostaddr=127.0.0.1" > -- ok to reuse hostaddr=127.0.0.1; I agree that's a feature > \connect Oh, ok, sorry for misunderstanding.
Commits
-
Tweak libpq's PQhost, PQhostaddr, and psql's \connect
- 313f56ce2d1b 12.0 landed
-
psql: Show IP address in \conninfo
- 6e5f8d489acc 12.0 landed