model-writtenrun 212 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nisha Moond reported that a subscriber whose only key was a deferrable primary key could crash assertion-enabled apply workers or silently skip changes, and proposed rejecting that key during updatability checking with a regression test #1.
- Hayato Kuroda confirmed the analysis and identified the same inappropriate primary-key fallback in deleted-tuple searches #2; Nisha incorporated that fix and demonstrated how it could incorrectly report update_deleted when the publisher used REPLICA IDENTITY FULL #3.
- Hayato requested separate patches because the original crash needed backpatching through PG17 while the deleted-tuple issue affected PG19 and master #4, and Nisha split the fixes and added a deleted-tuple test #5.
- Amit Kapila argued that deleted-tuple searches should reuse the relation map's selected index because looking up identity information again could disagree after concurrent DDL, and prioritized this fix #6; Hayato supplied a top-up implementing that design with an illustrative concurrent DROP INDEX test #7.
- Nisha integrated Hayato's redesign, tested it on master and PG19, and separated both deleted-tuple tests into an auxiliary patch initially described as outside the intended commit #8.
- Vignesh C requested an explanation of why the cached index preserved the old identity/primary-key fallback, while Zhijie Hou requested clearer naming and removal of redundant checks and cleanup #10 #11; Nisha incorporated those suggestions, received Vignesh's approval, and then adopted Zhijie's already-held-lock and loop simplifications #12 #13 #14 #15.
- Amit requested simpler comments and retaining only the deferrable-key regression test #16; Zhijie prepared and tested the final combined patch, leaving out the concurrent DROP INDEX test #17.
- Amit committed the deleted-tuple fix as a72542b793, whose code and test diff matches #17 modulo rebasing, with credit to Hayato and Nisha and backpatching through PG19; he confirmed the push in #18.
- Nisha resumed the remaining original crash fix #19; Hayato suggested reusing the already-selected index for updatability checks #20, and Zhijie supplied a top-up after confirming that the existing ordering did not permit the suspected invalidation race #21.
- Nisha integrated the cached-index approach, documented the required initialization order, and supplied a separate PG17 variant #22; Hayato tested partitioned tables successfully and had no further comments #23, leaving the deleted-tuple fix committed and the original crash fix reviewed but without a reported landing in this thread.