Re: Designing a better connection pool for psycopg3

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Designing a better connection pool for psycopg3
Date: 2021-01-18 14:43:54
Message-ID: CA+mi_8btFL9=N4m_CFRMFD6QpJyAFjfqXentHkLoAfVYE2xQog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, 18 Jan 2021 at 15:39, Magnus Hagander <magnus(at)hagander(dot)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

In response to

Browse psycopg by date

  From Date Subject
Next Message Karsten Hilbert 2021-01-18 14:44:15 Re: Designing a better connection pool for psycopg3
Previous Message Karsten Hilbert 2021-01-18 14:42:46 Re: Designing a better connection pool for psycopg3