Re: Designing a better connection pool for psycopg3

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>, psycopg(at)postgresql(dot)org
Subject: Re: Designing a better connection pool for psycopg3
Date: 2021-01-18 13:50:34
Message-ID: CA+mi_8a-0Wx62eziOBwp-=ryBynsqrgx4AcBGW5+pSr3vZXjHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, 18 Jan 2021 at 14:13, Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> wrote:

> I would strongly advise against making sys.exit() the default
> for pool.terminate() unless I misunderstand something.

How would you terminate the program if a maintenance thread, not the
main one, thinks that the program is not in working state?

Thank you!

-- Daniele

In response to

Responses

Browse psycopg by date

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