Re: what happens if a failed transaction is not rolled back? - Mailing list pgsql-general

From Luca Ferrari
Subject Re: what happens if a failed transaction is not rolled back?
Date
Msg-id CAKoxK+4PRGL1v5i6CFwp0XfY2R85GoXVPA0aF8+_iyxECq4e2g@mail.gmail.com
Whole thread Raw
In response to what happens if a failed transaction is not rolled back?  (Siddharth Jain <siddhsql@gmail.com>)
List pgsql-general
On Mon, Apr 24, 2023 at 5:37 PM Siddharth Jain <siddhsql@gmail.com> wrote:
> i am asking: what happens if a failed transaction is not rolled back?

A transaction either terminates by a commit or by a rollback. A failed
transaction is an opened transaction that can be terminated only by a
rollback.
If you don't rollback, then your transaction is hold by the driver,
that means for instance your pooler is not able to recycle it.
Clearly, the exact behavior depends by the driver.



pgsql-general by date:

Previous
From: Garfield Lewis
Date:
Subject: Re: [EXT] Re: SCROLLABLE/UPDATABLE cursor question
Next
From: Max Kremer
Date:
Subject: Fwd: postgresql15-contrib installation on Amazon Linux 2 fails on Python shared lib dependency