Re: fix psql \conninfo & \connect when using hostaddr

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Arthur Zakirov <a(dot)zakirov(at)postgrespro(dot)ru>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: fix psql \conninfo & \connect when using hostaddr
Date: 2019-06-11 04:46:41
Message-ID: alpine.DEB.2.21.1906110643260.9922@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello Dmitry,

> Given that it's an open item for PostgreSQL 12,

I'm working on it, but slowly.

> I've decided to take a look.

Thanks!

> Indeed, looks like 6e5f8d4 introduced a subtle behaviour change, when
> hostaddr changes are not picked up for subsequent \connect's, and I
> don't see any mentions of it in the documentation.

ISTM that the documentation is kind of fuzzy enough to match both
behaviors.

> 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.

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2019-06-11 04:49:02 Re: Missing generated column in ALTER TABLE ADD COLUMN doc
Previous Message Etsuro Fujita 2019-06-11 04:45:20 Re: postgres_fdw: unordered C includes