pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: David Wheeler <hippysoyboy@gmail.com>
Cc: Siddharth Jain <siddhsql@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: what happens if a failed transaction is not rolled back?
Date: Mon, 24 Apr 2023 21:41:25 -0400
Message-ID: <589774.1682386885@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHyXU0wGs8k0OqB_QQKYPT6J2bRxNyrjr-i9ZhWCQ8ju_uNnHw@mail.gmail.com>
References: <CAKFQuwZLqqiwmNjzO=RxztMqTQ+FBu8ti9p0Gb00ZS7iW4tM7w@mail.gmail.com>
	<5AE892DD-A808-4874-AAD4-C47E5C92E28D@gmail.com>
	<CAKFQuwZ+i6LMi0DyD6=H_FrmbErpK7q39Tq7GypZ_6FZ6FRNFw@mail.gmail.com>
	<548096.1682371213@sss.pgh.pa.us>
	<CAHyXU0wGs8k0OqB_QQKYPT6J2bRxNyrjr-i9ZhWCQ8ju_uNnHw@mail.gmail.com>

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.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <589774.1682386885@sss.pgh.pa.us>
Permalink:  ../589774.1682386885@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/589774.1682386885@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mmoncure@gmail.com, david.g.johnston@gmail.com, hippysoyboy@gmail.com, siddhsql@gmail.com
  Subject: Re: what happens if a failed transaction is not rolled back?
  In-Reply-To: <589774.1682386885@sss.pgh.pa.us>
  References: <CAKFQuwZLqqiwmNjzO=RxztMqTQ+FBu8ti9p0Gb00ZS7iW4tM7w@mail.gmail.com> <5AE892DD-A808-4874-AAD4-C47E5C92E28D@gmail.com> <CAKFQuwZ+i6LMi0DyD6=H_FrmbErpK7q39Tq7GypZ_6FZ6FRNFw@mail.gmail.com> <548096.1682371213@sss.pgh.pa.us> <CAHyXU0wGs8k0OqB_QQKYPT6J2bRxNyrjr-i9ZhWCQ8ju_uNnHw@mail.gmail.com> <589774.1682386885@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox