]> 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)
commit71dca408c0030ad76044c6b17367c9fbeac511ec
tree8d6c793cf91ee81ade73fce1eb096c112133f849
parentee5d1de04f3354c7a87219c2ed481ae51a1bb3b8
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