Re: BUG #16867: savepoints vs. commit and chain
Arthur Nascimento <tureba@gmail.com>
From: Arthur Nascimento <tureba@gmail.com>
To: Arthur Filipe Martins Nascimento <tureba@gmail.com>,
pgsql-bugs@lists.postgresql.org
Date: 2021-02-15T21:47:29Z
Lists: pgsql-bugs
Attachments
- psql-savepoint-cac.txt (text/plain)
On Mon, 15 Feb 2021 at 17:54, PG Bug reporting form <noreply@postgresql.org> wrote: > On a trivial transaction, I might do: > > =# begin; > *=# commit and chain; > *=# -- In this point I'm inside a second transaction I forgot to mention that this case also works as expected: =# begin; *=# savepoint foo; *=# release foo; *=# commit and chain; *=# -- In this point I'm also inside a second transaction So it's only the unmatched savepoint/release transactions that are an issue. I also attached the change I did to psql locally. But since it didn't solve the issue, it's mostly for curiosity's sake. Thanks, Tureba - Arthur Nascimento
Commits
-
Fix psql's ON_ERROR_ROLLBACK so that it handles COMMIT AND CHAIN.
- 67b3ee292935 12.7 landed
- be7485a1e311 13.3 landed
- fe06819f105c 14.0 landed
-
Fix bug in COMMIT AND CHAIN command.
- fadcc4e81bd9 12.7 landed
- 422012c98f8d 13.3 landed
- 8a55cb5ba965 14.0 landed