Re: libpq async connection and multiple hosts - Mailing list pgsql-hackers

From Jelte Fennema
Subject Re: libpq async connection and multiple hosts
Date
Msg-id CAGECzQTtxzjVQ=5eUFM8cqHXgZ556HQ_MUKq3F==cee3E1V3ZQ@mail.gmail.com
Whole thread Raw
In response to Re: libpq async connection and multiple hosts  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Responses Re: libpq async connection and multiple hosts
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Partial aggregates pushdown
Next
From: Peter Geoghegan
Date:
Subject: Re: Improving btree performance through specializing by key shape, take 2