model-writtenrun 7294 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Takamichi Osumi reported a logical-decoding assertion after a restart lost the association between a subtransaction and its parent, and proposed preserving that relationship in serialized snapshots #1; Hayato Kuroda supplied an implementation and regression test #2.
- Kyotaro Horiguchi explained that commit records already identify subtransactions #3, and Dilip Kumar identified the missing needs_timetravel assignment in SnapBuildCommitTxn(), making relationship serialization unnecessary #4.
- Kuroda proposed combining the parent and child catalog-change conditions #6, but discussion of diagnostic compatibility led Amit Kapila to recommend keeping the existing branches and adding a separate DEBUG2 message #8 #9, which Kuroda accepted #10.
- Amit reproduced a second assertion in AssertTXNLsnOrder() by replacing TRUNCATE with ANALYZE, connected it to intermittent buildfarm failures, and proposed relaxing the ordering check for related transactions #11.
- Kuroda submitted the small HEAD fix and reported a distinct PostgreSQL 14–15 failure involving subtransactions with invalidations but no base snapshot #12, then supplied a separate proof of concept that transferred invalidations to the parent while leaving change records untouched #13.
- Amit requested restoration of an existing code comment #14, and Kuroda restored it while explaining that older branches assigned parent-child relationships differently, causing the invalidation failure #15.
- After a month, Masahiko Sawada reviewed the HEAD patch's test explanation and diagnostic wording #16, and Kuroda incorporated those corrections without changing its logic #17.
- Masahiko pointed to a related-thread solution for the older-branch invalidation problem #18; after Kuroda wondered whether his patches were unnecessary #19, Masahiko clarified that the snapshot-tracking correction remained required, leaving coordination with the related thread open at this thread's final message #20.
- On October 20, Amit committed 16b1fe0037 from the later combined submission #518421 in thread #46552, incorporating this thread's snapshot-tracking correction from #17, an AssertTXNLsnOrder() guard before decoding begins, and a user-catalog-table regression trigger, with backpatching through PostgreSQL 10.
- On October 21, Amit committed Masahiko's invalidation fix as 216af69aec from #518535 in thread #46552, retaining the deletion of premature child assignment while omitting the regression tests; this superseded the invalidation-transfer proof of concept in #13 and was backpatched through PostgreSQL 11, excluding PostgreSQL 10 because its final release was near.