Re: libpq async connection and multiple hosts

From: Jelte Fennema <postgres(at)jeltef(dot)nl>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq async connection and multiple hosts
Date: 2023-10-25 22:10:39
Message-ID: CAGECzQTtxzjVQ=5eUFM8cqHXgZ556HQ_MUKq3F==cee3E1V3ZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 25 Oct 2023 at 18:54, Daniele Varrazzo
<daniele(dot)varrazzo(at)gmail(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2023-10-25 22:35:58 Re: Improving btree performance through specializing by key shape, take 2
Previous Message Bruce Momjian 2023-10-25 22:08:23 Re: Partial aggregates pushdown