Re: libpq host/hostaddr/conninfo inconsistencies
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-02-21T14:27:21Z
Lists: pgsql-hackers
Hello Robert, >>> (2) you are not against improving the documentation, although you find it >>> clear enough already, but you agree that some people could get confused. >>> >>> The attached patch v4 only improves the documentation so that it reflects >>> what the implementation really does. I think it too bad to leave out the >>> user-friendly aspects of the patch, though. >> >> Robert, any chance you could opine on the doc patch, given that's your >> suggested direction? > > I find it to be a more change than we really need, and I'm not sure > how much it helps to clarify the issue at hand. Here is a simpler > change which seems like it might do the trick (or maybe not, let's see > what others think). It is a minimal diff on "hostaddr" documentation which clarifies what is its intended use. I'm okay with it. However, it does not discuss that an IP can (and should, IMHO) be given through "host" if the point is to specify the target by its IP rather than a lookup shortcut. -- Fabien.
Commits
-
libpq docs: be clearer about conninfo's 'hostaddr'
- 75f46eaee20c 13.0 landed
-
psql: Show IP address in \conninfo
- 6e5f8d489acc 12.0 landed