1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Change Win32 O_SYNC method to O_DSYNC because that is what the method

currently does.  This is now the default Win32 wal sync method because
we perfer o_datasync to fsync.

Also, change Win32 fsync to a new wal sync method called
fsync_writethrough because that is the behavior of _commit, which is
what is used for fsync on Win32.

Backpatch to 8.0.X.
This commit is contained in:
Bruce Momjian
2005-03-24 04:37:07 +00:00
parent 3781b72c22
commit 291cd954fb
5 changed files with 26 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.301.4.3 2005/03/03 16:47:43 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.301.4.4 2005/03/24 04:36:55 momjian Exp $
-->
<chapter id="runtime">
@@ -1511,6 +1511,7 @@ SET ENABLE_SEQSCAN TO OFF;
values are
<literal>fsync</> (call <function>fsync()</> at each commit),
<literal>fdatasync</> (call <function>fdatasync()</> at each commit),
<literal>fsync_writethrough</> (call <function>_commit()</> at each commit on Windows),
<literal>open_sync</> (write WAL files with <function>open()</> option <symbol>O_SYNC</>), and
<literal>open_datasync</> (write WAL files with <function>open()</> option <symbol>O_DSYNC</>).
Not all of these choices are available on all platforms.