• Tom Lane's avatar
    Arrange to fsync the contents of lockfiles (both postmaster.pid and the · ee0e525b
    Tom Lane authored
    socket lockfile) when writing them.  The lack of an fsync here may well
    explain two different reports we've seen of corrupted lockfile contents,
    which doesn't particularly bother the running server but can prevent a
    new server from starting if the old one crashes.  Per suggestion from
    Alvaro.
    
    Back-patch to all supported versions.
    ee0e525b
miscinit.c 34.9 KB