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

From Karsten Hilbert
Subject Re: Designing a better connection pool for psycopg3
Date
Msg-id YAWeZsmLydefv+Uu@hermes.hilbert.loc
Whole thread Raw
In response to Re: Designing a better connection pool for psycopg3  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Am Mon, Jan 18, 2021 at 03:29:34PM +0100 schrieb Daniele Varrazzo:

> Anyway I appreciate that the default of terminating a program is
> probably too aggressive. So I would remove the `terminate()` function
> and base implementation and leave a `connection_failed()` handler,
> with a default no-op implementation, which people preferring their
> program to terminate can subclass (with `sys.exit(1)` or whatever
> termination strategy they find useful).

+1

Some apps may just gladly carry on buffering data locally,
and sending them to the backend next time they get a chance
to do so.

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



psycopg by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Designing a better connection pool for psycopg3
Next
From: Daniele Varrazzo
Date:
Subject: Re: Designing a better connection pool for psycopg3