Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-08-25 Thread Michael Paquier
On Thu, Aug 6, 2015 at 4:02 PM, Mikko Tiihonen wrote: > Because the feature as its simplest is a for loop in libpq. I would not think > it much of a feature creep, especially since my original patch to libpq > showed the loop already has been hidden in libpq for a long time, it just > needed a s

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-08-06 Thread Mikko Tiihonen
On Thu, Aug 6, 2015 at 03:15 AM, Michael Paquier wrote: >On Wed, Aug 5, 2015 at 11:53 PM, Bruce Momjian wrote: >> On Wed, Jul 8, 2015 at 12:24:37PM -0400, Robbie Harwood wrote: >>> > You update the documentation just for psql but your change effects any >>> > libpq application if we go forward

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-08-05 Thread Michael Paquier
On Wed, Aug 5, 2015 at 11:53 PM, Bruce Momjian wrote: > On Wed, Jul 8, 2015 at 12:24:37PM -0400, Robbie Harwood wrote: >> > You update the documentation just for psql but your change effects any >> > libpq application if we go forward with this patch we should update the >> > documentation for l

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-08-05 Thread Bruce Momjian
On Wed, Jul 8, 2015 at 12:24:37PM -0400, Robbie Harwood wrote: > > You update the documentation just for psql but your change effects any > > libpq application if we go forward with this patch we should update the > > documentation for libpq as well. > > > > This approach seems to work with the

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-07-08 Thread Robbie Harwood
Steve Singer writes: > On 04/19/2015 11:18 AM, Mikko Tiihonen wrote: >> >> Hi, >> >> >> I would like allow specifying multiple host names for libpq to try to >> connecting to. This is currently only supported if the host name >> resolves to multiple addresses. Having the support for it without

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-07-08 Thread Steve Singer
On 04/19/2015 11:18 AM, Mikko Tiihonen wrote: Hi, I would like allow specifying multiple host names for libpq to try to connecting to. This is currently only supported if the host name resolves to multiple addresses. Having the support for it without complex dns setup would be much easier.

Re: [HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-04-29 Thread Robert Haas
On Sun, Apr 19, 2015 at 11:18 AM, Mikko Tiihonen wrote: > I would like allow specifying multiple host names for libpq to try to > connecting to. This is currently only supported if the host name resolves to > multiple addresses. Having the support for it without complex dns setup > would be much e

[HACKERS] [PATCH] libpq: Allow specifying multiple host names to try to connect to

2015-04-19 Thread Mikko Tiihonen
Hi, I would like allow specifying multiple host names for libpq to try to connecting to. This is currently only supported if the host name resolves to multiple addresses. Having the support for it without complex dns setup would be much easier. Example: psql -h dbslave,dbmaster -p 5432 dbna