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
Cc: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Subject: Re: Designing a better connection pool for psycopg3
Date: 2021-01-18 14:15:55
Message-ID: YAWYG+XqwuWLHFMA@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Am Mon, Jan 18, 2021 at 02:13:21PM +0100 schrieb Karsten Hilbert:

> > https://www.psycopg.org/articles/2021/01/17/pool-design/
>
> I would strongly advise against making sys.exit() the default
> for pool.terminate() unless I misunderstand something.

IMO it should fall back to stopping the pooling machinery and
trying to return new connections on request.

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

In response to

Browse psycopg by date

  From Date Subject
Next Message Karsten Hilbert 2021-01-18 14:19:44 Re: Designing a better connection pool for psycopg3
Previous Message Magnus Hagander 2021-01-18 14:05:10 Re: Designing a better connection pool for psycopg3