postgresql/contrib/test_decoding
Andres Freund 0bda14d54c logical decoding: old/newtuple in spooled UPDATE changes was switched around.
Somehow I managed to flip the order of restoring old & new tuples when
de-spooling a change in a large transaction from disk. This happens to
only take effect when a change is spooled to disk which has old/new
versions of the tuple. That only is the case for UPDATEs where he
primary key changed or where replica identity is changed to FULL.

The tests didn't catch this because either spooled updates, or updates
that changed primary keys, were tested; not both at the same time.

Found while adding tests for the following commit.

Backpatch: 9.4, where logical decoding was added
2016-03-05 18:02:20 -08:00
..
expected logical decoding: old/newtuple in spooled UPDATE changes was switched around. 2016-03-05 18:02:20 -08:00
specs Force synchronous_commit=on in test_decoding's concurrent_ddl_dml.spec. 2016-03-03 17:22:25 -08:00
sql logical decoding: old/newtuple in spooled UPDATE changes was switched around. 2016-03-05 18:02:20 -08:00
.gitignore test_decoding: Update .gitignore 2014-03-31 14:18:35 -04:00
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
Makefile logical decoding: Tell reorderbuffer about all xids. 2016-03-05 18:02:20 -08:00
test_decoding.c Update copyright for 2016 2016-01-02 13:33:40 -05:00