Re: BUG #16867: savepoints vs. commit and chain
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Vik Fearing <vik@postgresfriends.org>,
Arthur Nascimento <tureba@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2021-02-19T13:05:25Z
Lists: pgsql-bugs
On 2021/02/19 17:29, Vik Fearing wrote: > On 2/19/21 5:02 AM, Fujii Masao wrote: >> >> >> On 2021/02/18 23:10, Vik Fearing wrote: >>> >>> No objection from me. According to the standard, a COMMIT should >>> destroy all savepoints and terminate the transaction, even if AND CHAIN >>> is specified. >> >> You imply that the standard says that COMMIT AND CHAIN should just >> terminate >> the transaction if there are savepoints defined, i.e., should not start new >> transaction? Since I can (maybe wrongly) interpret your comment like that, >> please let me confirm what the standard says just in case. > > The COMMIT terminates the transaction, the AND CHAIN starts a new one. > >> I was thinking that COMMIT AND CHAIN should destroy all the savepoints, >> terminate the transaction and start new transaction with the same >> transaction >> characteristics immediately. > > Your thinking is correct! Thanks! I pushed the patches. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
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