From 9d645fd84c330610f85951457b71f56a709ab3de Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 16 Mar 2001 05:44:33 +0000 Subject: 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. --- src/backend/utils/misc/postgresql.conf.sample | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/backend/utils/misc/postgresql.conf.sample') diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 88d1fe94370..d6641f51666 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -107,6 +107,8 @@ # #wal_buffers = 8 # min 4 #wal_files = 0 # range 0-64 +#wal_sync_method = fsync # fsync or fdatasync or open_sync or open_datasync +# Note: default wal_sync_method varies across platforms #wal_debug = 0 # range 0-16 #commit_delay = 0 # range 0-100000 #commit_siblings = 5 # range 1-1000 -- cgit v1.2.3