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

From Merlin Moncure
Subject Re: what happens if a failed transaction is not rolled back?
Date
Msg-id CAHyXU0whm0B03a60KtLjoty=JHVoO0GSDip7b0q3a2F6nrcEdg@mail.gmail.com
Whole thread Raw
In response to Re: what happens if a failed transaction is not rolled back?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, Apr 24, 2023 at 8:41 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Merlin Moncure <mmoncure@gmail.com> writes:
> Hm. I also noticed when looking at this that aborted transactions with
> savepoints are not subjected to the idle_in_transaction timeout which is a
> bit surprising.

Hmm ... I think it's intentional that idle_in_transaction no longer
applies once the transaction has failed.  But if there's a live
savepoint, then we should enforce it since resources may still be
held.  Seems like a bug, if your observation is accurate.


hm,  double checking, it's not.

merlin

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: what happens if a failed transaction is not rolled back?
Next
From: jian he
Date:
Subject: wiki.postgres ​ Tighten trigger permission checks already resolved