fsync failure handling
Treating fsync failures as data loss (PANIC, data_sync_retry) and the reworked checkpointer sync request queue that followed the 2018 fsyncgate discussion. Introduced in PostgreSQL 12.
Threads
- checkpointer: PANIC: could not fsync file: No such file or directory
- Checkpointer sync queue fills up / loops around pg_usleep() are bad
- Handing off SLRU fsyncs to the checkpointer
- pendingOps table is not cleared with fsync=off
- client-side fsync() error handling
- PANIC: could not flush dirty data: Operation not permitted power8, Redhat Centos
- fsync error handling in pg_receivewal, pg_recvlogical
- fsync failure in durable_unlink ignored in xlog.c?
- Refactoring the checkpointer's fsync request queue
- Fsync-before-close thought experiment
- BUG #15659: missing comment "change requires restart" in postgresql.conf for parameter "data_sync_retry"
- Postgres, fsync, and OSs (specifically linux)
- Checkpoint not retrying failed fsync?
- Fsync request queue
- PostgreSQL's handling of fsync() errors is unsafe and risks data loss at least on XFS