]> granicus.if.org Git - postgresql/commit
Don't propagate a null subtransaction snapshot up to parent transaction.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Aug 2016 17:15:55 +0000 (13:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Aug 2016 17:15:55 +0000 (13:15 -0400)
commitc63588feb73f993ec596cb3b139b06e8923bea04
treea64e718756f6812220f38b512ed7dd970178b0e3
parent98d5f366bc28ad3393d4ad9f2ee4cf9b884087f6
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>
contrib/test_decoding/expected/xact.out
contrib/test_decoding/sql/xact.sql
src/backend/replication/logical/reorderbuffer.c