model-writtenrun 8469 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shihao Zhong reported that an error in smgrregistersync() caught by a savepoint could leave DELAY_CHKPT_START set, blocking checkpoints until the transaction ended; #1 proposed removing the flag by registering the sync request before checking the redo pointer and supplied a separate injection-point reproducer.
- Joao Rito reproduced the checkpoint hang by manually placing the injection point in unfixed code, then reported passing TAP and regression tests with the fix in #2; he supported the ordering but questioned redundant fsync work and had not tested concurrent checkpoint races or crash recovery.
- Shihao Zhong confirmed in #3 that a checkpoint during the bulk write could cause one extra fsync per segment of a file already flushed.
- Michael Paquier proposed checking the redo pointer before registration and again afterward to reduce redundant sync work, and argued against backpatching because the failure seemed unlikely in practice in #4; he corrected the named calls delimiting the redundant-sync window in #5.
- Michael Paquier supplied the revised implementation in #6, registering a request only when the initial redo pointer still matched and performing an immediate sync if either check detected a change; the patch omitted the reproducer and specified no backpatch. The thread ended with this revision pending, limited testing, and an unexplained Windows CI failure whose relationship to the patch remained uncertain.