Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2019-02-12 21:42:37 +0000
committerAlvaro Herrera2019-02-12 21:42:37 +0000
commit8c67d29fd51c0381d8bce41d35d7726725924616 (patch)
treee90531012a6cae15b6857c70649bf921365ae467 /contrib/btree_gist
parentd357a16997a2e9dce0f56299c739b2b2584c4026 (diff)
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
Diffstat (limited to 'contrib/btree_gist')
0 files changed, 0 insertions, 0 deletions