model-writtenrun 2130 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
May - Jul 2025 ยท 22 entries
- Duncan Sands reported logical-replication allocation failures after upgrading from PostgreSQL 17.4 to 17.5, with downgrading restoring replication, in #1.
- Amit Kapila identified repeated redistribution of already distributed invalidations as the source of explosive memory growth in #4, and Hayato Kuroda implemented an initial fix that queued received invalidations without accumulating them for redistribution in #6.
- Shlok Kyal reproduced the failure with concurrent transactions and repeated publication DDL and confirmed that the initial patch avoided it in #10; Duncan subsequently reported 24 error-free hours with that patch in #14.
- Masahiko Sawada raised missing invalidation during transaction cleanup in #8, and Amit described a concurrent-abort data-loss scenario in #9, leading Hayato to add an invalidation traversal in #11.
- Masahiko demonstrated that successful replay also needed cleanup of distributed invalidations in #13, and Hayato extended the traversal to that path in #16.
- Amit warned that traversing all changes again would be expensive for large or spilled transactions in #17, prompting Hayato's separate distributed-invalidation queue in #20 and subsequent cleanup in #26.
- Masahiko argued against serialization and complex memory accounting in error paths and proposed a separate array with full-cache invalidation on overflow in #23 and #27; Amit supported an explicit transaction flag in #29, and vignesh C implemented the new approach in #30.
- Review by Masahiko and Amit established an 8 MB limit, a dedicated distributed-invalidation function, and cleanup in the common error path in #32 and #33, with the changes incorporated in #34.
- The fix was adapted to supported branches in #37, and Hayato's extension search in #38 supported appending new structure fields despite residual ABI risk, which Amit requested documenting in #42.
- Masahiko's helper-function review and attached fix-up in #40 and #46 led to clearer accumulation, queuing, overflow naming, and comments in #44 and #47.
- Masahiko and Amit found that discarding original transaction invalidations on distributed-buffer overflow could break other cleanup paths in #49 and #51, so #53 preserved those original invalidations unconditionally.
- Hayato tested an ABI-preserving alternative that capped the original array in #55 and demonstrated lost changes, while performance and correctness concerns led Masahiko to endorse separate distributed arrays on every branch in #65.
- Hayato incorporated Masahiko's further fix-up and proposed a lower assertion-build overflow threshold in #63, but Masahiko and Amit rejected that testing strategy because it would favor simpler full-cache invalidation over production's selective invalidation paths in #64 and #66.
- Vignesh instead added a regression test for successful-replay invalidation in #67, and Masahiko supplied a test-only fix-up that reused sessions in #72.
- Hayato questioned PostgreSQL 13's handling of concurrent publication changes in #70, and Amit explained that its different visibility behavior was intentional in #71.
- After #73 moved the PostgreSQL 13 test insert after commit, Masahiko restored the same test sequence across branches with a different expected result for PostgreSQL 13 and prepared the final submission in #74.
- The final branch submission #74 became 1230be12f0, retaining the bounded distributed-array design and PostgreSQL 13-specific test expectation; Masahiko announced that the fix had been pushed to supported branches in #76.
- Alexander Lakhin reported that the new PostgreSQL 13 test failed under CLOBBER_CACHE_ALWAYS in #77, and Hayato explained why forced cache flushing changed its result and proposed removing the permutation in #80.
- Amit preferred retaining a robust test in #83, and Masahiko proposed two expected-output files in #84; despite Hayato's maintenance concern in #85, Masahiko posted that replacement approach in #87.
- Amit endorsed the replacement in #88, Tom Lane accepted either repair given PostgreSQL 13's remaining lifetime in #91, and Michael Paquier approved the extra output file while correcting comment typos in #92.
- Masahiko's corrected submission #93 landed unchanged as 87819f766f, preserving the regression test and accepting both cache-dependent outcomes.
- At the thread's end, Masahiko confirmed that the follow-up fix was pushed and buildfarm member trilobite was green in #94, leaving no outstanding patch revision identified in the discussion.