]> 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)
commitbcbecbce2fde3c6dfa9080db11663877808a007d
tree35213efaf4cdeabbb00f1b739fcb72814aebf43b
parent3676631c687009c2fadcb35e7d312e9eb8a98182
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