#PostgreSQL writes to disk, it executes one of the system fsync calls (fsync or fdatasync) to flush that data to disk. By
default, the cache on hard disks and disk controllers are assumed to be
volatile: when power fails, data written there will be lost. Since that
can result in filesystem and/or database corruption when it happens,
fsync in Linux issues a write barrier that forces all data onto physical
disk. That will flush the write cache on both RAID and drive write
caches.
#syscalls
https://avidandrew.com/understanding-disk-cache-writeback-ext4.html


