psycopg2 positioning of .commit() (Posting On Python-List Prohibited)
Jon Ribbens
jon+usenet at unequivocal.eu
Mon Sep 9 15:00:17 EDT 2024
On 2024-09-09, Karsten Hilbert <Karsten.Hilbert at gmx.net> wrote:
> Am Mon, Sep 09, 2024 at 10:00:11AM -0000 schrieb Jon Ribbens via Python-list:
>> So the Python code is half-way through a transaction when it throws
>> a (non-database-related) exception and that thread of execution is
>> aborted. The database connection returns to the pool,
>
> How does it return to the pool ?
It's just any circumstance in which a bit of your code uses a database
"cursor" (which isn't a cursor) that it didn't create moments before.
More information about the Python-list
mailing list