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 CAGECzQQ1RL0jUTQ_zHQ0+9E26zCMFwBo4V05kd+xqLCgFVcxjg@mail.gmail.com
Whole thread Raw
In response to Re: libpq async connection and multiple hosts  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List pgsql-hackers
On Thu, 26 Oct 2023 at 03:31, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> The goal here was only non-blocking name resolution. Ahaini understand we should do is to split on the hosts for sync
connectionstoo, shuffle if requested, and make separate  connection attempts.
 

If you pack the resolved addresses in same connection string then it
should be fine. The different hostaddrs will be shuffled by libpq.



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_upgrade and logical replication
Next
From: "Drouvot, Bertrand"
Date:
Subject: Re: Reconcile stats in find_tabstat_entry() and get rid of PgStat_BackendFunctionEntry