postgresql/contrib/test_decoding
Alvaro Herrera 8c67d29fd5 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 Force synchronous commit to be enabled for all test_decoding tests. 2018-10-10 13:53:02 -07:00
sql Relax overly strict assertion 2019-02-12 18:42:37 -03:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
test_decoding.c Update copyright for 2019 2019-01-02 12:44:25 -05:00