Re: Code checks for App Devs, using new options for transaction behavior - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Code checks for App Devs, using new options for transaction behavior
Date
Msg-id 2004835.1679604212@sss.pgh.pa.us
Whole thread Raw
In response to Re: Code checks for App Devs, using new options for transaction behavior  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> On Thu, 27 Oct 2022 at 07:10, Simon Riggs <simon.riggs@enterprisedb.com> wrote:
>> * nested transactions = off (default) | all | on
>> Handle nested BEGIN/COMMIT, which can cause chaos on failure.

> I think we've been burned pretty badly by GUCs that control SQL
> semantics before.

Yeah, this idea is an absolute nonstarter.  rollback_on_commit seems
excessively dangerous as well compared to the value.

> I think there was discussion at the time nested
> transactions went in and there must have been a reason we did
> SAVEPOINT rather than make nested BEGINs do things like this.

I believe the reason was "because the SQL standard says so".

I'm not sure if any of these proposals are still live now that
Simon's retired.  Presumably somebody else would have to push
them forward for there to be a chance of anything happening.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Commitfest 2023-03 starting tomorrow!
Next
From: Tom Lane
Date:
Subject: Re: pg_bsd_indent vs vpath