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

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: [HACKERS] [bug fix] PG10: libpq doesn't connect to alternativehosts when some errors occur
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F6F58D7@G01JPEXMBYT05
обсуждение исходный текст
Ответ на Re: [HACKERS] [bug fix] PG10: libpq doesn't connect to alternativehosts when some errors occur  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
From: Michael Paquier [mailto:michael.paquier@gmail.com]
> It seems to me that the feature is behaving as wanted. Or in short attempt
> to connect to the next host only if a connection cannot be established.
> If there is a failure once the exchange with the server has begun, just
> consider it as a hard failure. This is an important property for
> authentication and SSL connection failures actually.

But PgJDBC behaves as expected -- attempt another connection to other hosts (and succeed).  I believe that's what users
wouldnaturally expect.  The current libpq implementation handles only the socket-level connect failure.
 

Regards
Takayuki Tsunakawa


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: [HACKERS] CTE inlining
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: [HACKERS] Re: [doc fix] PG10: wroing description on connect_timeout whenmultiple hosts are specified