pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix behavior of AND CHAIN outside of explicit transaction blocks 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix behavior of AND CHAIN outside of explicit transaction blocks @ 2019-09-08 14:34 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2019-09-08 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix behavior of AND CHAIN outside of explicit transaction blocks When using COMMIT AND CHAIN or ROLLBACK AND CHAIN not in an explicit transaction block, the previous implementation would leave a transaction block active in the ROLLBACK case but not the COMMIT case. To fix for now, error out when using these commands not in an explicit transaction block. This restriction could be lifted if a sensible definition and implementation is found. Bug: #15977 Author: fn ln <emuser20140816@gmail.com> Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/862ef372d6b23629f93d4afc123ddd7d172501ac Modified Files -------------- doc/src/sgml/ref/commit.sgml | 3 +- doc/src/sgml/ref/rollback.sgml | 3 +- src/backend/access/transam/xact.c | 58 +++++++++++++++------- src/test/regress/expected/transactions.out | 78 ++++++++++++++++++++++++++++++ src/test/regress/sql/transactions.sql | 43 ++++++++++++++++ 5 files changed, 166 insertions(+), 19 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix behavior of AND CHAIN outside of explicit transaction blocks @ 2019-09-08 14:34 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2019-09-08 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix behavior of AND CHAIN outside of explicit transaction blocks When using COMMIT AND CHAIN or ROLLBACK AND CHAIN not in an explicit transaction block, the previous implementation would leave a transaction block active in the ROLLBACK case but not the COMMIT case. To fix for now, error out when using these commands not in an explicit transaction block. This restriction could be lifted if a sensible definition and implementation is found. Bug: #15977 Author: fn ln <emuser20140816@gmail.com> Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr> Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b6d72ddd5fbf3f6eb79597ab0c8ec3aaa7c16805 Modified Files -------------- doc/src/sgml/ref/commit.sgml | 3 +- doc/src/sgml/ref/rollback.sgml | 3 +- src/backend/access/transam/xact.c | 58 +++++++++++++++------- src/test/regress/expected/transactions.out | 78 ++++++++++++++++++++++++++++++ src/test/regress/sql/transactions.sql | 43 ++++++++++++++++ 5 files changed, 166 insertions(+), 19 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-09-08 14:34 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-09-08 14:34 pgsql: Fix behavior of AND CHAIN outside of explicit transaction blocks Peter Eisentraut <peter@eisentraut.org> 2019-09-08 14:34 pgsql: Fix behavior of AND CHAIN outside of explicit transaction blocks Peter Eisentraut <peter@eisentraut.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox