Re: Designing a better connection pool for psycopg3

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: psycopg(at)lists(dot)postgresql(dot)org, psycopg(at)postgresql(dot)org
Subject: Re: Designing a better connection pool for psycopg3
Date: 2021-01-18 19:03:35
Message-ID: YAXbh7b98F/HBrgD@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Am Mon, Jan 18, 2021 at 10:20:12AM -0800 schrieb Vladimir Ryabtsev:

> BTW, at which moment will the driver be trying to connect? At pool
> initialization or on first "getconn()"?

I tend to favor the latter, as a default.

As you said, an application can always attempt to grab a
connection early on to detect failures.

Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B

In response to

Browse psycopg by date

  From Date Subject
Next Message Denis Laxalde 2021-02-03 16:15:48 about client-side cursors
Previous Message Karsten Hilbert 2021-01-18 18:49:17 Re: Designing a better connection pool for psycopg3