Support syncing WAL log to disk using either fsync(), fdatasync(),
authorTom Lane <[email protected]>
Fri, 16 Mar 2001 05:44:33 +0000 (05:44 +0000)
committerTom Lane <[email protected]>
Fri, 16 Mar 2001 05:44:33 +0000 (05:44 +0000)
commit9d645fd84c330610f85951457b71f56a709ab3de
treee343ff54963a38dce3cfc8a4381c01199ff88262
parent4eb5e27a28c986077f9707341a05e556042baf45
Support syncing WAL log to disk using either fsync(), fdatasync(),
O_SYNC, or O_DSYNC (as available on a given platform).  Add GUC parameter
to control sync method.
Also, add defense to XLogWrite to prevent it from going nuts if passed
a target write position that's past the end of the buffers so far filled
by XLogInsert.
doc/src/sgml/runtime.sgml
doc/src/sgml/wal.sgml
src/backend/access/transam/xlog.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h