Skip to content

Commit 487b757

Browse files
committed
Clarify wal_sync_method options in documentation.
1 parent 3117afa commit 487b757

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.341 2005/07/30 17:15:35 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.342 2005/08/09 04:50:43 momjian Exp $
33
-->
44

55
<chapter Id="runtime">
@@ -1724,13 +1724,38 @@ SET ENABLE_SEQSCAN TO OFF;
17241724
<listitem>
17251725
<para>
17261726
Method used for forcing WAL updates out to disk. Possible
1727-
values are
1728-
<literal>fsync</> (call <function>fsync()</> at each commit),
1729-
<literal>fdatasync</> (call <function>fdatasync()</> at each commit),
1730-
<literal>fsync_writethrough</> (force write-through of any disk write cache),
1731-
<literal>open_sync</> (write WAL files with <function>open()</> option <symbol>O_SYNC</>), and
1732-
<literal>open_datasync</> (write WAL files with <function>open()</> option <symbol>O_DSYNC</>).
1727+
values are:
1728+
</para>
1729+
<itemizedlist>
1730+
<listitem>
1731+
<para>
1732+
<literal>open_datasync</> (write WAL files with <function>open()</> option <symbol>O_DSYNC</>)
1733+
</para>
1734+
</listitem>
1735+
<listitem>
1736+
<para>
1737+
<literal>fdatasync</> (call <function>fdatasync()</> at each commit),
1738+
</para>
1739+
</listitem>
1740+
<listitem>
1741+
<para>
1742+
<literal>fsync</> (call <function>fsync()</> at each commit)
1743+
</para>
1744+
</listitem>
1745+
<listitem>
1746+
<para>
1747+
<literal>open_sync</> (write WAL files with <function>open()</> option <symbol>O_SYNC</>)
1748+
</para>
1749+
</listitem>
1750+
<listitem>
1751+
<para>
1752+
<literal>fsync_writethrough</> (force write-through of any disk write cache)
1753+
</para>
1754+
</listitem>
1755+
</itemizedlist>
1756+
<para>
17331757
Not all of these choices are available on all platforms.
1758+
The top-most supported option is used as the default.
17341759
If <varname>fsync</varname> is off then this setting is irrelevant.
17351760
This option can only be set at server start or in the
17361761
<filename>postgresql.conf</filename> file.

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*-------------------------------------------------------------------------
1+
conninfo_parse/*-------------------------------------------------------------------------
22
*
33
* fe-connect.c
44
* functions related to setting up a connection to the backend
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.314 2005/07/13 15:25:55 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.315 2005/08/09 04:50:44 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy