Support syncing WAL log to disk using either fsync(), fdatasync(),

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9d645fd84c330610f85951457b71f56a709ab3de
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-03-16T05:44:33Z
Releases: 7.1.1
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.

Files