pgsql: Fix error message when a hostaddr cannot be parsed. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix error message when a hostaddr cannot be parsed.
Date
Msg-id E1fgCgt-0003pP-1V@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix error message when a hostaddr cannot be parsed.

We were incorrectly passing hostname, not hostaddr, in the error message,
and because of that, you got:

$ psql 'hostaddr=foo'
psql: could not parse network address "(null)": Name or service not known

Backpatch to v10, where this was broken (by commit 7b02ba62e9).

Report and fix by Robert Haas.

Discussion: https://www.postgresql.org/message-id/CA+TgmoapFQA30NomGKEaZCu3iN7mF7fux8fbbk9SouVOT2JP7w@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dc961e5822343c8b22371a78ded4d6263418de61

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Rephrase a few comments for clarity.
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Fix handling of empty uncompressed posting list pages in GIN