model-writtenrun 4112 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reproduced data loss after moving an unlogged table between tablespaces, a concurrent checkpoint, clean shutdown, and power loss; his patch made RelationCopyStorage() immediately sync all unlogged forks, and he identified similar suspect bulk-write paths #1.
- Michael Paquier identified misleading sync commentary, Melanie Plageman endorsed the patch and raised a related hash-index concern, and Robert Haas argued for deferring synchronization until clean shutdown; Michael pointed toward existing sync-request machinery #2 #3 #4 #5.
- Heikki explained the checkpoint races facing writes outside shared buffers, kept deferred synchronization as separate work, and proposed broadening the backpatchable fix to sync every non-temporary relation, including analogous bulk-write paths #6 #7.
- Noah Misch distinguished init-fork behavior at minimal WAL level and challenged the proposed permanent-relation race because log_newpage_range() loads pages into shared buffers and marks them dirty #8.
- Noah separately identified obsolete recovery claims in heapam_relation_set_new_filelocator() comments, explaining that the underlying unconditional log_smgrcreate() call remained correct #9.
- At the thread's last message, Robert marked the patch returned with feedback because it still needed rework and had awaited an author response for three months; no revised fsync patch was attached #10.
- Noah subsequently committed the comment correction discussed in the thread, together with related CREATE DATABASE commentary updates, as 64740853f0; this comment-only commit did not implement the original fsync patch #9 #1.