model-writtenrun 561 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kozhemyakin reported a PostgreSQL 19beta2 test_decoding crash when decoding a prepared transaction containing only a row lock in #1, and Masahiko Sawada confirmed that the empty-transaction case affected PostgreSQL 18 and newer in #2.
- Masahiko identified an additional bug affecting older branches: empty transactions emitted COMMIT PREPARED without a preceding PREPARE, breaking logical replication, and proposed suppressing these callbacks when no base snapshot exists in #3; Amit Kapila agreed in #4.
- Amit supplied the initial cleanup patch for PostgreSQL 17 and earlier in #5, mentioning a special return value from ReorderBufferReplay() as an alternative; Masahiko chose the direct snapshot-check approach and extended it with the newer-branch PREPARE guard and regression tests in #6.
- Amit approved the implementation while requesting a clearer explanation of why concurrently aborted transactions still need PREPARE in #7, and Masahiko agreed to restore that explanation in #8.
- Masahiko submitted revised patches for master and PostgreSQL 14 through 19 in #9; their attachments could not be extracted, but the committed implementation preserves the preceding version's logic and tests with the requested comment clarification and minor formatting changes.
- Masahiko landed the final submission as acaa100f9a, with backports through PostgreSQL 14, and confirmed the push in #10, leaving no outstanding work stated in the thread.