Re: Libpq support to connect to standby server as priority

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Libpq support to connect to standby server as priority
Дата
Msg-id CADK3HHLhXstomksx73FUqBc2bgBh2BvTByFUCvB1sE1mfD_zpw@mail.gmail.com
обсуждение исходный текст
Ответ на RE: Libpq support to connect to standby server as priority  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Список pgsql-hackers


On Thu, 17 Jan 2019 at 19:09, Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com> wrote:
From: Dave Cramer [mailto:pg@fastcrypt.com]
>       >> 2) If there's no node on which pg_is_in_recovery() returns false,
> then
>       >>    we need to retry until we find it. To not retry forever, there
>       >>    should be a timeout counter parameter.

> Checking the code I see we actually use show transaction_read_only.

Also, does PgJDBC really repeat connection attempts for a user-specified duration?  Having a quick look at the code, it seemed to try each host once in a while loop.

You are correct looking at the code again. On the initial connection attempt we only try once.


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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Libpq support to connect to standby server as priority
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Libpq support to connect to standby server as priority