From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Allow multiple hostaddrs to go with multiple hostnames. |
Date: | 2017-07-10 09:30:43 |
Message-ID: | E1dUV1f-0001aw-T4@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Allow multiple hostaddrs to go with multiple hostnames.
Also fix two other issues, while we're at it:
* In error message on connection failure, if multiple network addresses
were given as the host option, as in "host=127.0.0.1,127.0.0.2", the
error message printed the address twice.
* If there were many more ports than hostnames, the error message would
always claim that there was one port too many, even if there was more than
one. For example, if you gave 2 hostnames and 5 ports, the error message
claimed that you gave 2 hostnames and 3 ports.
Discussion: https://www.postgresql.org/message-id/10badbc6-4d5a-a769-623a-f7ada43e14dd@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b02ba62e9ffad5b14c24756a0c2aeae839c9d05
Modified Files
--------------
doc/src/sgml/libpq.sgml | 55 +++++++-
src/interfaces/libpq/fe-connect.c | 258 ++++++++++++++++++++++++--------------
src/interfaces/libpq/libpq-int.h | 3 +-
3 files changed, 219 insertions(+), 97 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Masahiko Sawada | 2017-07-10 10:27:40 | Re: [COMMITTERS] pgsql: Allow multiple hostaddrs to go with multiple hostnames. |
Previous Message | Tom Lane | 2017-07-10 04:44:46 | pgsql: Doc: remove claim that PROVE_FLAGS defaults to '--verbose'. |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2017-07-10 09:30:47 | Re: List of hostaddrs not supported |
Previous Message | Kyotaro HORIGUCHI | 2017-07-10 09:29:03 | Re: paths in partitions of a dummy partitioned table |