model-writtenrun 6828 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mihail Nikalayeu reported that interrupted concurrent partition detach leaves relispartition set while the ancestor list is empty, and supplied three fixes covering logical decoding, identity-column inserts, and UPDATE/DELETE crashes in #1.
- Álvaro Herrera considered the fixes suitable for backpatching but suggested making ancestor traversal semantics explicit in a future API change in #2; Nisha Moond subsequently reproduced the decoding problem, verified its fix, and endorsed all three patches in #4.
- Shveta malik questioned the replication semantics and the mismatch with publication-table lookup in #6; Amit Kapila agreed that an ALL TABLES publication should publish the detaching partition independently and favored deferring API changes to separate development-branch work in #7.
- Shveta's testing exposed continued replication through the former root in #10, and she traced it to missing partition cache invalidation and supplied an inline invalidation fix in #11.
- Nisha argued that descendants also need invalidation and rejected retaining the former root's publication identity because it can make publisher and subscriber data diverge in #12.
- Nisha isolated and rebased the UPDATE/DELETE fix for independent review in #14; Shveta verified it and supplied consistent empty-ancestor handling in #15, which Nisha incorporated alongside a clearer EXCEPT error and FINALIZE hint in #16.
- Shveta approved the revised code and suggested consolidating tests in #17, while Zhijie Hou proposed removing a redundant Boolean in #18; Nisha incorporated both suggestions and Amit's off-list feedback in #19.
- Amit committed #19 as 090b44557d, preserving its code and tests while editing the commit message, and announced the push in #20; Nisha closed the PostgreSQL 19 open item while noting the remaining work in #21.
- Zsolt Parragi independently submitted another pgoutput crash fix and a publication-table-list correction in #22; Nisha explained that the crash was already under discussion and demonstrated that the table-list bug affected both full and targeted lookups with publish_via_partition_root enabled in #23.
- Zsolt acknowledged overlooking the earlier proposal in #24, and Shveta agreed with the publication-list fix while reserving detailed review for the combined work in #25.
- Mihail consolidated the remaining work into four patches in #26: the original decoding and identity-sequence fixes, Zsolt's publication-list correction, and Shveta's invalidation extended to descendants with AccessShareLock, plus expanded tests.
- After a gap, Masahiko Sawada renewed attention to the decoding crash in #27 and explained in #29 that PostgreSQL 19 newly crashes with default publication settings, whereas earlier versions required publish_via_partition_root; Shveta reproduced that regression in #30 and submitted a focused fix in #31.
- Amit identified the existing decoding patch as substantially equivalent and proposed fixing both old and new crash cases while leaving the cache-invalidation problem for further discussion in #32; Shveta agreed in #34, and Amit settled on backpatching through PostgreSQL 15 in #36.
- Zhijie supplied a top-up in #33 that replaced am_partition with direct ancestor-list checks and replaced the subscription test with a smaller isolation test; Shveta requested default publication settings and an explicit detach-pending check in #35.
- Zhijie merged the decoding changes and supplied branch variants in #37, adopting default publication settings but declining the extra catalog check and moving the test to contrib/test_decoding because the main isolation suite can run with wal_level=minimal.
- Shveta approved the final patches with a publication-name nit in #38, which Zhijie declined in #39; Amit landed the decoding fix from #37 as 9a849767eb with backports through PostgreSQL 15, and announced the push in #41, while Nisha reported successful testing across the branches in #40.
- Although thread #139321 supplied an earlier crash report and claims a discussion-derived fix, the later matching submission in #37 establishes this thread as the source of 9a849767eb; an unchanged landing remains inferred because the final attachment could not be extracted.
- Álvaro supported a more distinctive publication name to ease possible future parallel testing in #42; Amit asked whether to make that adjustment on HEAD and requested review of the remaining detach-invalidation patch in #43.
- Nisha resent the three remaining patches in #44: the identity-column crash fix and cache-invalidation fix were rebased without substantive changes, while the publication-list fix retained its code and received independent TAP setup with redundant decoding checks removed; all three remain under review, and the proposed test-publication rename is unresolved.