• Robert Haas's avatar
    Recursively fsync() the data directory after a crash. · 2ce439f3
    Robert Haas authored
    Otherwise, if there's another crash, some writes from after the first
    crash might make it to disk while writes from before the crash fail
    to make it to disk.  This could lead to data corruption.
    
    Back-patch to all supported versions.
    
    Abhijit Menon-Sen, reviewed by Andres Freund and slightly revised
    by me.
    2ce439f3
fd.c 63.6 KB