model-writtenrun 7049 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier opened the thread with fixes for premature CLOG lookups and mutation of TwoPhaseState while iterating over prepared transactions, combining deeper FullTransactionId integration with recovery tests and proposing early filename-horizon checks followed by end-of-recovery CLOG checks #1.
- Michael split the unchanged implementation into an independent FullTransactionId refactoring and a recovery-fix patch to simplify review #2.
- Vitaly Davydov questioned CLOG availability for old transactions and the checkpoint boundary used to reject future files in the recovery-fix component #3; Michael explained that end-of-recovery CLOG access was safe and that the checkpoint selected from WAL was preferable to the control-file copy when restoring a backup #4.
- Noah Misch broadened the concern beyond CLOG: before consistency, two-phase files themselves may contain unfinished writes, and after consistency unexpected committed or aborted files should ideally cause recovery failure rather than silent cleanup #5.
- Michael resumed the work in May, favoring one early directory scan with checkpoint-based filtering and narrowing the immediate target to PostgreSQL 19 #6; his refreshed series retained delayed CLOG checks and added a fast path, clearer comments, and stronger recovery tests #7.
- Noah argued that recovery should read file contents only when directed by WAL until consistency, because even a CRC failure can be premature #8; after Michael clarified his filename-filtering goal #9, Noah accepted early rejection of out-of-range filenames but warned against loading future transactions into shared memory and questioned WARNING severity for future files #10.
- Michael proposed recording filenames early while delaying file reads, identified shutdown-checkpoint replay as an unresolved case, and submitted only the independently useful refactoring with corrected xid conversion and an additional recovery assertion; its callback ABI change ruled out safe backpatching #11.
- Noah highlighted that a valid backup can contain more two-phase files than max_prepared_transactions before consistency, complicating the proposed early shared-memory tracking, while accepting the refactoring's risk #12.
- Michael committed the refactoring from #11 with only an initializer spelling change and expanded commit explanation, crediting Noah Misch and himself as authors 62a17a9283; although the work originated partly in thread #50811, this thread supplied the latest matching patchset.
- At the thread's end, Michael confirmed that only the refactoring had landed, left the recovery fixes unresolved, and marked the CommitFest entry returned with feedback while hoping to revisit it in September #13.