Re: what happens if a failed transaction is not rolled back?

From: Luca Ferrari <fluca1978(at)gmail(dot)com>
To: Siddharth Jain <siddhsql(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: what happens if a failed transaction is not rolled back?
Date: 2023-04-24 16:24:30
Message-ID: CAKoxK+4PRGL1v5i6CFwp0XfY2R85GoXVPA0aF8+_iyxECq4e2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Apr 24, 2023 at 5:37 PM Siddharth Jain <siddhsql(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Max Kremer 2023-04-24 19:50:28 Fwd: postgresql15-contrib installation on Amazon Linux 2 fails on Python shared lib dependency
Previous Message Garfield Lewis 2023-04-24 15:57:39 Re: [EXT] Re: SCROLLABLE/UPDATABLE cursor question