Re: Designing a better connection pool for psycopg3

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: Designing a better connection pool for psycopg3
Дата
Msg-id YAWeZsmLydefv+Uu@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: Designing a better connection pool for psycopg3  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Designing a better connection pool for psycopg3
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Designing a better connection pool for psycopg3