model-writtenrun 65 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Steele proposed refreshing metadata after opening non-relation files so base backups cannot truncate or zero-pad atomically replaced files, while retaining earlier relation-file sizes to avoid copying data recoverable from WAL #1.
- Shihao Zhong reproduced the backup failures and verified David's fix, then supplied an independent temporary-file-and-rename patch for two-phase state files that backups could otherwise copy while incomplete #2.
- David clarified that two-phase files are created once rather than repeatedly rewritten, identified the same failure during crash recovery, and requested stale temporary-file cleanup; Shihao agreed to treat this as a separate fix #3 #4.
- Chao Li requested simpler backup comments, while Michael Paquier requested preserving the caller's stat data with a local copy and checked the assumptions about atomic replacement #5 #6.
- Michael endorsed two separate patches and considered permanent injection-point tests unnecessary for this case; Shihao supplied revised two-phase patches with startup cleanup and older-branch adaptations #7 #8.
- Michael committed the revised two-phase fix with comment and commit-message edits and backpatched it through v14 #8 a5ccf20801.
- David revised the backup patch to use a local stat copy throughout file transmission and incorporated the shorter comments, explicitly noting that the two-phase issue had been fixed separately #9 #10.
- Michael committed the revised backup fix with only comment and commit-message changes, backpatching through v15 and excluding soon-to-be-EOL v14 because of the risk of introducing a late regression 51d7bf5edc #11.
- The thread ended with both fixes committed and David agreeing with the v14 exclusion; Michael and David discussed future violations of the atomic-replacement convention but identified no practical additional safeguard to implement #11 #12.