Re: libpq async connection and multiple hosts

Поиск
Список
Период
Сортировка
От Jelte Fennema
Тема Re: libpq async connection and multiple hosts
Дата
Msg-id CAGECzQTtxzjVQ=5eUFM8cqHXgZ556HQ_MUKq3F==cee3E1V3ZQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: libpq async connection and multiple hosts  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: libpq async connection and multiple hosts  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список pgsql-hackers
On Wed, 25 Oct 2023 at 18:54, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> - connect_timeout
> - multiple host, hostaddr, port
> - load_balance_hosts=random
>
> Does this list sound complete?

I think you'd also want to resolve the hostnames to IPs yourself and
iterate over those one-by-one. Otherwise if the first IP returned for
the hostname times out, you will never connect to the others.



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Partial aggregates pushdown
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Improving btree performance through specializing by key shape, take 2