mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Clarify wal_sync_method options in documentation.
This commit is contained in:
parent
3117afa75d
commit
487b757b7a
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.341 2005/07/30 17:15:35 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.342 2005/08/09 04:50:43 momjian Exp $
|
||||
-->
|
||||
|
||||
<chapter Id="runtime">
|
||||
@ -1724,13 +1724,38 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
<listitem>
|
||||
<para>
|
||||
Method used for forcing WAL updates out to disk. Possible
|
||||
values are
|
||||
<literal>fsync</> (call <function>fsync()</> at each commit),
|
||||
<literal>fdatasync</> (call <function>fdatasync()</> at each commit),
|
||||
<literal>fsync_writethrough</> (force write-through of any disk write cache),
|
||||
<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</>).
|
||||
values are:
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>open_datasync</> (write WAL files with <function>open()</> option <symbol>O_DSYNC</>)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>fdatasync</> (call <function>fdatasync()</> at each commit),
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>fsync</> (call <function>fsync()</> at each commit)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>open_sync</> (write WAL files with <function>open()</> option <symbol>O_SYNC</>)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>fsync_writethrough</> (force write-through of any disk write cache)
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<para>
|
||||
Not all of these choices are available on all platforms.
|
||||
The top-most supported option is used as the default.
|
||||
If <varname>fsync</varname> is off then this setting is irrelevant.
|
||||
This option can only be set at server start or in the
|
||||
<filename>postgresql.conf</filename> file.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
conninfo_parse/*-------------------------------------------------------------------------
|
||||
*
|
||||
* fe-connect.c
|
||||
* functions related to setting up a connection to the backend
|
||||
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.314 2005/07/13 15:25:55 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.315 2005/08/09 04:50:44 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user