postgres/contrib/test_decoding
Alvaro Herrera 350cdcd5e6 Relax overly strict assertion
Ever since its birth, ReorderBufferBuildTupleCidHash() has contained an
assertion that a catalog tuple cannot change Cmax after acquiring one.  But
that's wrong: if a subtransaction executes DDL that affects that catalog
tuple, and later aborts and another DDL affects the same tuple, it will
change Cmax.  Relax the assertion to merely verify that the Cmax remains
valid and monotonically increasing, instead.

Add a test that tickles the relevant code.

Diagnosed by, and initial patch submitted by: Arseny Sher
Co-authored-by: Arseny Sher
Discussion: https://postgr.es/m/874l9p8hyw.fsf@ars-thinkpad
2019-02-12 18:42:37 -03:00
..
expected Relax overly strict assertion 2019-02-12 18:42:37 -03:00
specs Fix "base" snapshot handling in logical decoding 2018-06-26 16:38:34 -04:00
sql Relax overly strict assertion 2019-02-12 18:42:37 -03: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 Fix "base" snapshot handling in logical decoding 2018-06-26 16:38:34 -04:00
test_decoding.c Fix test_decoding's handling of nonexistant columns in old tuple versions. 2015-06-27 19:01:00 +02:00