git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 678d0e2) | patch
Fix bug in COMMIT AND CHAIN command.
2021年2月19日 12:57:52 +0000 (21:57 +0900)
2021年2月19日 12:57:52 +0000 (21:57 +0900)
commit 8a55cb5ba9655ffb1cf0a3042aaa6f5eef8c5a85
Fix bug in COMMIT AND CHAIN command.

This commit fixes COMMIT AND CHAIN command so that it starts new transaction
immediately even if savepoints are defined within the transaction to commit.
Previously COMMIT AND CHAIN command did not in that case because
commit 280a408b48 forgot to make CommitTransactionCommand() handle
a transaction chaining when the transaction state was TBLOCK_SUBCOMMIT.

Also this commit adds the regression test for COMMIT AND CHAIN command
when savepoints are defined.

Back-patch to v12 where transaction chaining was added.

Reported-by: Arthur Nascimento
Author: Fujii Masao
Reviewed-by: Arthur Nascimento, Vik Fearing
Discussion: https://postgr.es/m/16867-3475744069228158@postgresql.org
src/backend/access/transam/xact.c diff | blob | blame | history
src/test/regress/expected/transactions.out diff | blob | blame | history
src/test/regress/sql/transactions.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /