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

From David G. Johnston
Subject Re: what happens if a failed transaction is not rolled back?
Date
Msg-id CAKFQuwZ+i6LMi0DyD6=H_FrmbErpK7q39Tq7GypZ_6FZ6FRNFw@mail.gmail.com
Whole thread Raw
In response to Re: what happens if a failed transaction is not rolled back?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: what happens if a failed transaction is not rolled back?
List pgsql-general
On Mon, Apr 24, 2023 at 12:56 PM David Wheeler <hippysoyboy@gmail.com> wrote:


On 25 Apr 2023, at 1:47 am, David G. Johnston <david.g.johnston@gmail.com> wrote:

There isn't anything special about a failed transaction compared to any other transaction that you leave open.

Now I’m curious. Does it have the same impact on performance that an idle in transaction connection has? Eg does it prevent vacuum? Does it still hold locks?

 
Absent documentation to the contrary I would expect the system to at best be in an idle-in-transaction state as-if the failed command never was executed.  The concept of savepoints, whether in use in a particular transaction, would require at least that much state be preserved.

David J.

pgsql-general by date:

Previous
From: David Wheeler
Date:
Subject: Re: what happens if a failed transaction is not rolled back?
Next
From: Tom Lane
Date:
Subject: Re: what happens if a failed transaction is not rolled back?