postgresql/contrib/test_decoding
Alvaro Herrera c2e0954be3 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 Reduce cost of test_decoding's new oldest_xmin test 2018-07-05 16:40:42 -04: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
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
Makefile Fix up confusion over how to use EXTRA_INSTALL. 2019-01-11 17:39:46 -05:00
test_decoding.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00