Re: Code checks for App Devs, using new options for transaction behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Code checks for App Devs, using new options for transaction behavior
Дата
Msg-id 2004835.1679604212@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Code checks for App Devs, using new options for transaction behavior  (Greg Stark <stark@mit.edu>)
Список 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 по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Commitfest 2023-03 starting tomorrow!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_bsd_indent vs vpath