Re: Designing a better connection pool for psycopg3 - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Designing a better connection pool for psycopg3
Date
Msg-id CA+mi_8btFL9=N4m_CFRMFD6QpJyAFjfqXentHkLoAfVYE2xQog@mail.gmail.com
Whole thread Raw
In response to Re: Designing a better connection pool for psycopg3  (Magnus Hagander <magnus@hagander.net>)
List psycopg
On Mon, 18 Jan 2021 at 15:39, Magnus Hagander <magnus@hagander.net> wrote:

> And if you want to avoid the "timeout based error" in the client,
> adding a flag to the pool saying "this pool is currently unhealthy" in
> this case would work, and then whenever someone tries to get a
> connection out of this pool it can throw an exception immediately
> instead of waiting for a timeout to happen.

This is a good idea, thank you :)

-- Daniele



psycopg by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Designing a better connection pool for psycopg3
Next
From: Karsten Hilbert
Date:
Subject: Re: Designing a better connection pool for psycopg3