model-writtenrun 6059 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Haiying Tang reported that publishing a partitioned table could leave DELETE operations incorrectly permitted without replica identity, reproducing the problem on HEAD and PostgreSQL 13 and 14 in #1.
- Amit Kapila recommended placing descendant invalidation in publication_add_relation() and RemovePublicationRelById() in #3; Zhijie Hou accepted this in #4, abandoning an attempt to batch invalidations across tables and submitting Vignesh's helper refactoring together with his bug fix.
- Tang confirmed that #4 fixed both the reported problem and stale replica-identity errors after DROP PUBLICATION in #5; Vignesh reported successful testing and requested test-table cleanup in #6, which Hou incorporated in #7.
- Amit Kapila requested clearer comments and backpatching through PostgreSQL 13 in #8; Hou combined the patches and supplied tested HEAD and stable-branch variants in #9, which Kapila approved in #10.
- Amit Kapila committed the HEAD patch from #9 unchanged as 4548c76738, credited Hou and Vignesh as authors, backpatched through PostgreSQL 13, and announced completion in #11.
- After the landing, Amit Langote raised possible hazards from invalidating unlocked partitions and supplied a follow-up patch adding partition locking in #12.
- Amit Kapila pointed out that FOR ALL TABLES invalidation and AlterPublicationOptions() also lacked relation locking in #13; Langote acknowledged the overlooked caller and said he would investigate concrete hazards in #14.
- The thread ends with Kapila proposing a debugger-controlled concurrent DELETE scenario in #15 and correcting its wording in #16; the original invalidation fix had landed, while the locking follow-up remained unresolved without a confirmed reproduction or recorded landing.