model-writtenrun 2460 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun - Jul 2023 · 4 entries
- Masahiko Sawada proposed checking CLOG when first decoding a transaction so already-aborted transactions would not accumulate changes, attaching an initial implementation and tests in #1.
- Andres Freund warned that TransactionIdDidAbort misses implicit crash aborts and that frequent CLOG lookups could hurt small-transaction workloads in #2; Sawada proposed checking only transactions large enough to exceed logical_decoding_work_mem in #3.
- Sawada explained that a rolled-back transaction containing 29 million deletes had produced 11 TB of spill files in #5, and Amit Kapila and Dilip Kumar supported checking before spilling or streaming because existing catalog-access checks could miss this workload in #6 and #7.
- The replacement implementation in #8 checked transaction status at eviction, cached outcomes, discarded aborted changes, and disabled the optimization in immediate streaming mode for regression tests.
Oct 2023 · 1 entry
- After Vignesh reported a compilation failure in #9 and the work went inactive, Sawada resumed with a rebase and comment updates in #11; Ajin Cherian's review preceded transaction-status flags and a prepared-transaction test in #13.
Feb - Mar 2024 · 1 entry
- Ajin questioned unresolved prepared transactions in #14, and Sawada explained that they remain in progress in #15; Peter Smith subsequently found missing expected output and reviewed flag naming and assertions in #16, with those fixes incorporated when work resumed in #17.
Oct 2024 - Mar 2025 · 11 entries
- November reviews by Peter and Vignesh refined tests, helper names, eviction filtering, and assertions across #20 through #32; Sawada also fixed prepare handling and preserved concurrent-abort test coverage using immediate streaming mode in #23.
- Sawada reported faster decoding of large aborted transactions and no noticeable CLOG lookup overhead in the tested medium-transaction workload in #34.
- Dilip questioned whether abort cleanup should precede selection of a streamable transaction in #36, but accepted the existing eviction-based approach after examining transactions without base snapshots in #45, with Amit agreeing in #46.
- Amit questioned replaying already-aborted prepared transactions in #35, leading Sawada to add a direct prepare-message path in #47.
- Further review exposed invalidation requirements, confusing cleanup arguments, and possible retained TOAST data in #48 and #50; the rework in #51 introduced explicit sent-prepare tracking, extracted streamed-state marking, restored normal replay handling, and reset TOAST data.
- Peter identified ambiguity between transaction type and whether a prepare message had been sent in #52, and Sawada added a separate flag-renaming patch alongside the main optimization in #55.
- The companion was temporarily withheld in #59 while names were debated; agreement narrowed the change to RBTXN_IS_PREPARED and its corresponding macro, retaining the existing skipped and sent names, and the two-patch series returned in #65.
- Peter and Amit's review of prepared-state relationships led #71 to initialize the prepared flag centrally, simplify snapshot filtering, and add assertions; further review corrected those assertions and consolidated them into a status mask in #78.
- Broader clarification of flag relationships, conversion of macros to inline functions, and serialized-flag renaming were left for separate discussion in #73, rather than expanding this series.
- Sawada committed the first patch from #78 as 072ee847ad with identical code and a commit-message typo correction, then committed its companion as abfb29648f with Peter's requested _MASK suffix; he confirmed both landings in #82.
- Hayato Kuroda proposed removing the now-unused rbtxn_skip_prepared macro in #83, but Sawada favored retaining it because every flag had a corresponding explanatory macro in #84, leaving both main changes landed and the cleanup proposal unaccepted at the thread's end.