pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: libpq: Allow connection strings and URIs to specify multiple hos
Date: Thu, 03 Nov 2016 13:46:29 +0000
Message-ID: <E1c2ILd-0008AH-6X@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)  latest in thread

Message-ID: <E1c2ILd-0008AH-6X@gemulon.postgresql.org>
Permalink:  ../E1c2ILd-0008AH-6X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1c2ILd-0008AH-6X@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: libpq: Allow connection strings and URIs to specify multiple hos
  In-Reply-To: <E1c2ILd-0008AH-6X@gemulon.postgresql.org>
  References: <E1c2ILd-0008AH-6X@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox