model-writtenrun 5503 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
May 2022 ยท 14 entries
- Peter Slavov reported that REINDEX INDEX CONCURRENTLY under concurrent inserts and updates could leave primary-key indexes missing rows on PostgreSQL 14, while the same workload succeeded on PostgreSQL 13.7 #1 #4.
- Michael Paquier bisected the failure to the optimization that excluded concurrent indexing transactions from vacuum horizons and posted a targeted revert; Alvaro Herrera raised an urgent release, while Andrey Borodin and Peter Geoghegan wanted the mechanism understood before deciding #8 #9 #10 #13.
- Andrey converted the workload into a short TAP reproduction and found that restoring concurrent indexing transactions to the horizon calculation prevented its failure; he also supplied an amcheck relaxation for debugging, explicitly clarifying that these experiments were not proposed production fixes #11 #12 #19.
- Peter Geoghegan reproduced the failure with parallel builds disabled, and Andres Freund traced it to HOT pruning removing versions visible to the validation snapshot while newer HOT versions remained invisible, leaving the chain without an index entry #21 #22 #26.
- Andrey suggested retaining the optimization outside validation, but Andres warned that other scans also require valid snapshots; Alvaro considered separate pruning horizons or suppressing HOT pruning, while Robert Haas and Andres judged such redesigns too invasive for backpatching #30 #31 #32 #33 #35.
- The discussion turned toward an expedited release and recovery guidance because catalogs do not reliably identify indexes built concurrently, amcheck primarily covers B-tree indexes, and users might need substantial reindexing #37 #38 #42 #44.
- At Andres's request, Andrey developed the reproduction into a prospective regression test, adopting current test modules and transaction counts, then trying longer transactions and repeated updates to improve failure probability and runtime #46 #47 #48 #49.
- Residual test failures after the narrow revert temporarily encouraged reverting the related snapshot-wait optimizations too, and Andrey reported that the broader reversal made both test variants pass #49 #50 #51 #52.
- Alvaro posted a complete reversal of all three optimizations, preserving incidental comment improvements; Andres endorsed the reversal scope and Michael explicitly approved the patch #58 #59 #61 #63.
- Regression-test inclusion remained unsettled because of runtime, inconsistent reproduction and ordinary workload deadlocks; Alvaro did not want test development to delay the fix, while Andres and Peter Geoghegan defended useful probabilistic tests #53 #55 #56 #60 #69.
- After rereading the changes, Alvaro concluded that avoiding waits between concurrent indexing operations was distinct from advancing the pruning horizon, and narrowed the intended revert to the latter #71 #72.
- The remaining assertion failures involved Peter Geoghegan's separate experimental pruning patch, and Andres identified a concurrent-abort scenario that invalidated its assertion, removing those failures as evidence that the broader reversal was necessary #73 #75 #76 #78.
- Alvaro committed only the horizon and documentation portion of the final attachment as e28bb88519, with a PostgreSQL 14 backport, preserving the snapshot-wait optimizations and confirming the revert in the thread #58 #79.
- The thread ended with the corruption-prevention revert landed, the test and diagnostic attachments uncommitted, and recovery guidance still disputed: after discussion of Bloom-filter false negatives, Andres raised additional ways amcheck could miss consequences of the corruption #68 #79 #80.