postgresql/src
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
..
backend Relax overly strict assertion 2019-02-12 18:42:37 -03:00
bin Move max_wal_senders out of max_connections for connection slot handling 2019-02-12 10:07:56 +09:00
common Use perfect hashing, instead of binary search, for keyword lookup. 2019-01-09 19:47:46 -05:00
fe_utils pgbench: add \cset and \gset commands 2019-01-10 13:42:20 -03:00
include Fix header inclusion issue. 2019-02-11 22:37:24 -05:00
interfaces Change error handling of out of scope variables in ecpg. 2019-01-30 14:35:52 +01:00
makefiles Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
pl Renaming for new subscripting mechanism 2019-02-01 12:50:32 -03:00
port Use our own getopt() on OpenBSD. 2019-01-18 15:06:26 -05:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Allow extensions to generate lossy index conditions. 2019-02-11 21:26:14 -05:00
timezone Update time zone data files to tzdata release 2018i. 2019-02-05 10:58:53 -05:00
tools Blind attempt at fixing Windows build 2019-02-12 18:29:26 -03:00
tutorial SQL comment: remove extra word in heading comment 2019-01-25 18:57:21 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00