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

From: Michael Paquier <michael(dot)paquier(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>, Stephen Frost <sfrost(at)snowman(dot)net>, Robert Haas <robertmhaas(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-18 05:40:25
Message-ID: CAB7nPqS=hz3Ed2m_VLpOfh=zBGj0JZSnCuDFZ9QuPNTW8P2xbw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 18, 2017 at 12:07 PM, Tsunakawa, Takayuki
<tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> wrote:
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
>> Maybe add this to the list of open issues to reconsider mid-beta?
>
> Done. I'll examine whether we can use SQLSTATE.

Does JDBC use something like that to make a difference between a
failure and a move-on-to-next-one? From maintenance point of view,
this would require lookups each time a new SQLSTATE is added. Not sure
that people would remember that.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2017-05-18 05:45:42 Re: [Proposal] Allow users to specify multiple tables in VACUUM commands
Previous Message Thomas Munro 2017-05-18 04:43:04 Re: Race conditions with WAL sender PID lookups