pgsql: Don't propagate a null subtransaction snapshot up to parent tran

Started by Tom Lanealmost 10 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Don't propagate a null subtransaction snapshot up to parent transaction.

This oversight could cause logical decoding to fail to decode an outer
transaction containing changes, if a subtransaction had an XID but no
actual changes. Per bug #14279 from Marko Tiikkaja. Patch by Marko
based on analysis by Andrew Gierth.

Discussion: <20160804191757.1430.39011@wrigleys.postgresql.org>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c63588feb73f993ec596cb3b139b06e8923bea04

Modified Files
--------------
contrib/test_decoding/expected/xact.out | 24 +++++++++++++++++++++++-
contrib/test_decoding/sql/xact.sql | 13 ++++++++++++-
src/backend/replication/logical/reorderbuffer.c | 9 +++++----
3 files changed, 40 insertions(+), 6 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers