model-writtenrun 564 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin opened the thread with reproducible failures after incomplete type-cache initialization, snapshot allocation and standby lock acquisition, using injected allocation failures for the first two and a standby TAP test for the third #1.
- Matthias van de Meent proposed a reusable LAZY_INIT mechanism for typcache and a separate snapshot cleanup fix, while initially considering critical sections for the standby problem #2.
- Michael Paquier replaced the typcache abstraction with explicit initialization guards and reordered callbacks #3; he separately committed the snapshot component with a shorter comment as 29fb598b9c.
- Heikki Linnakangas suggested either promoting initialization errors to FATAL or initializing the type cache at backend startup #4, while Matthias questioned callback-registration safety in Michael's simpler approach #5.
- Matthias supplied a separate standby fix that records locks only after successful acquisition #6, and Michael judged backpatching unnecessary because non-assert builds merely emit an additional diagnostic #7.
- Michael established that callback-registration exhaustion already raises FATAL and tested that shutdown remains safe #8, after which Matthias explicitly approved the reordered typcache patch #9.
- Michael committed the standby fix with shorter comments as b85f9c00fb and the rewritten typcache initialization with clarified comments as 73dab12719, confirming both landings without backpatches #12 #13.
- Nearly a month later, Alexander supplied reusable random-OOM instrumentation and reported additional failures involving partition constraints, typcache error recovery, statistics and CLUSTER cache invalidation #15.
- Alex Masterov identified a separate backend-local statistics hash entry left invalid after allocation failure #16, and Michael proposed allocation without an immediate OOM exception followed by explicit hash cleanup #18.
- Michael also proposed delaying publication of partition-cache fields, while leaving the new typcache and other reported failures unresolved #19.
- Alex approved the statistics cleanup #20, which Michael committed after removing temporary injection instrumentation as 16ebc196d8, confirming that only this statistics portion had landed #21.
- Matthias independently supplied a partition-cache fix that additionally prevents memory-context leaks by allocating transactionally before reparenting #22; Michael preferred it #25 and committed it with comment reflow as fc6425fbe7, while Matthias subsequently explained that he had missed Michael's competing patch #27.
- Antonin Houska investigated the CLUSTER failure on an older release #23, but Matthias pointed out that converting injected OOM errors to PANIC did not itself demonstrate corrupted state after error recovery #24.
- Matthias traced the remaining typcache assertion to error recovery attempting catcache initialization outside a transaction and moved in-progress registration after the initial lookup #28.
- Antonin then supplied a deterministic reproducer showing that any error during cache invalidation could leave broken state, and proposed making such errors FATAL #29.
- Michael accepted Matthias's typcache registration placement and committed it with a rewritten explanation as ccfd4b6838, while encouraging further investigation of the outstanding statistics problem #30.
- Antonin posted an ExitOnAnyError implementation for cache invalidation #31, but the supplied thread contains no landing or subsequent review of that proposal.
- At the thread's end, Matthias traced leaked shared statistics entries to errors inside shutdown callbacks and proposed promoting those errors to PANIC; the proposal remained unresolved because some test cases did not fully restart the server, leaving shutdown handling and cache-invalidation protection unfinished #32.