postgresql/contrib/test_decoding/sql
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
..
binary.sql test_decoding: Protect against rare spurious test failures. 2015-09-22 15:39:46 +02:00
ddl.sql logical decoding: old/newtuple in spooled UPDATE changes was switched around. 2016-03-05 18:02:20 -08:00
decoding_in_xact.sql Collection of typo fixes. 2015-05-20 16:56:22 +03:00
decoding_into_rel.sql Don't skip SQL backends in logical decoding for visibility computation. 2014-12-02 23:47:08 +01:00
permissions.sql Add skip-empty-xacts option to test_decoding for use in the regression tests. 2014-09-01 15:59:44 +02:00
prepared.sql Add skip-empty-xacts option to test_decoding for use in the regression tests. 2014-09-01 15:59:44 +02:00
replorigin.sql Introduce replication progress tracking infrastructure. 2015-04-29 19:30:53 +02:00
rewrite.sql Add skip-empty-xacts option to test_decoding for use in the regression tests. 2014-09-01 15:59:44 +02:00
time.sql logical decoding: fix decoding of a commit's commit time. 2016-03-02 23:42:21 -08:00
toast.sql Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. 2015-05-08 05:43:10 +02:00
xact.sql logical decoding: Tell reorderbuffer about all xids. 2016-03-05 18:02:20 -08:00