Re: [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur
Date: 2017-05-17 17:26:06
Message-ID: CAKFQuwaCdBPSMw5zkwZ+wGy8SqOTRyFPCs=PmEV=+=ppSdVbdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 17, 2017 at 12:06 AM, Tsunakawa, Takayuki <
tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> wrote:

> From: pgsql-hackers-owner(at)postgresql(dot)org
> > [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Robert Haas
> > Who is right is a judgement call, but I don't think it's self-evident
> that
> > users want to ignore anything and everything that might have gone wrong
> > with the connection to the first server, rather than only those things
> which
> > resemble a down server. It seems quite possible to me that if we had
> defined
> > it as you are proposing, somebody would now be arguing for a behavior
> change
> > in the other direction.
>
> Judgment call... so, I understood that it's a matter of choosing between
> helping to detect configuration errors early or service continuity.

​This is how I've been reading this thread and I'm tending to agree with
prioritizing service continuity ​over configuration error detection. As a
client if I have an alternative that ends up working I don't really care
whose fault it is that the earlier options weren't. I don't have enough
experience to think up plausible scenarios here but I'm sold on the theory.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2017-05-17 17:27:12 Re: [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur
Previous Message Tom Lane 2017-05-17 17:19:20 Re: [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur