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

From Daniele Varrazzo
Subject Re: libpq async connection and multiple hosts
Date
Msg-id CA+mi_8aAL=a6SM+UTsce=s_9DWOjsH1fwcqFLkbwRKd+oNr0Pw@mail.gmail.com
Whole thread Raw
In response to Re: libpq async connection and multiple hosts  (Jelte Fennema <postgres@jeltef.nl>)
Responses Re: libpq async connection and multiple hosts
List pgsql-hackers
On Wed, 25 Oct 2023 at 17:35, Jelte Fennema <postgres@jeltef.nl> wrote:

> You should implement load_balance_hosts=random though
> by randomizing your hosts list.

Good catch. So it seems that, if someone wants to build an equivalent
an async version of PQconnectdb, they need to handle on their own:

- connect_timeout
- multiple host, hostaddr, port
- load_balance_hosts=random

Does this list sound complete?

-- Daniele



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: CRC32C Parallel Computation Optimization on ARM
Next
From: Daniele Varrazzo
Date:
Subject: Re: libpq async connection and multiple hosts