• Tom Lane's avatar
    Change s_lock to not use any zero-delay select() calls; these are just a · 33cc5d8a
    Tom Lane authored
    waste of cycles on single-CPU machines, and of dubious utility on multi-CPU
    machines too.
    Tweak s_lock_stuck so that caller can specify timeout interval, and
    increase interval before declaring stuck spinlock for buffer locks and XLOG
    locks.
    On systems that have fdatasync(), use that rather than fsync() to sync WAL
    log writes.  Ensure that WAL file is entirely allocated during XLogFileInit.
    33cc5d8a
s_lock.h 12.7 KB