]> granicus.if.org Git - postgresql/commit
libpq: Allow connection strings and URIs to specify multiple hosts.
authorRobert Haas <rhaas@postgresql.org>
Thu, 3 Nov 2016 13:25:20 +0000 (09:25 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 3 Nov 2016 13:25:20 +0000 (09:25 -0400)
commit274bb2b3857cc987cfa21d14775cae9b0dababa5
tree488b5fd46e2cb4acdab7fb2dd30c4e4d1d4bb7d1
parent770671062f130a830aa89100c9aa2d26f8d4bf32
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.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-int.h