Thread: pgsql/src/backend/access/transam xlog.c

pgsql/src/backend/access/transam xlog.c

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/03/17 15:54:13

Modified files:
    src/backend/access/transam: xlog.c

Log message:
    Rearrange XLogFileInit so that control-file spinlock is not held while filling
    the new log file with zeroes, only while renaming it into place.  This should
    prevent problems with 'stuck spinlock' errors under heavy load.