pgsql: libpq: Allow connection strings and URIs to specify multiple hos

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: libpq: Allow connection strings and URIs to specify multiple hos
Date: 2016-11-03 13:46:29
Message-ID: E1c2ILd-0008AH-6X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

libpq: Allow connection strings and URIs to specify multiple hosts.

It's also possible to specify a separate port for each host.

Previously, we'd loop over every address returned by looking up the
host name; now, we'll try every address for every host name.

Patch by me. Victor Wagner wrote an earlier patch for this feature,
which I read, but I didn't use any of his code. Review by Mithun Cy.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/274bb2b3857cc987cfa21d14775cae9b0dababa5

Modified Files
--------------
doc/src/sgml/libpq.sgml | 38 ++-
src/interfaces/libpq/fe-auth.c | 28 +-
src/interfaces/libpq/fe-connect.c | 607 ++++++++++++++++++++++++++------------
src/interfaces/libpq/libpq-int.h | 41 ++-
4 files changed, 506 insertions(+), 208 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-11-03 15:05:00 Re: [COMMITTERS] pgsql: Add make rules to download raw Unicode mapping files
Previous Message Tom Lane 2016-11-02 19:50:41 pgsql: Don't make FK-based selectivity estimates in inheritance situati

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-11-03 13:59:54 Re: Proposal: scan key push down to heap [WIP]
Previous Message Robert Haas 2016-11-03 13:46:28 Re: Patch: Implement failover on libpq connect level.