Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 19c4049

Browse files
committed
Move example of turning off synchronous_commit to a more logical place,
to wit in the description of that variable rather than some other one.
1 parent 6f90690 commit 19c4049

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/config.sgml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.163 2008/01/30 18:35:55 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.164 2008/02/02 23:29:12 tgl Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -1343,9 +1343,7 @@ SET ENABLE_SEQSCAN TO OFF;
13431343
In many situations, turning off <xref linkend="guc-synchronous-commit">
13441344
for noncritical transactions can provide much of the potential
13451345
performance benefit of turning off <varname>fsync</varname>, without
1346-
the attendant risks of data corruption. It can even be turned
1347-
off in a single multi-statement transaction using <command>SET
1348-
LOCAL synchronous_commit TO OFF;</>.
1346+
the attendant risks of data corruption.
13491347
</para>
13501348

13511349
<para>
@@ -1385,6 +1383,9 @@ SET ENABLE_SEQSCAN TO OFF;
13851383
one transaction is determined by the setting in effect when it
13861384
commits. It is therefore possible, and useful, to have some
13871385
transactions commit synchronously and others asynchronously.
1386+
For example, to make a single multi-statement transaction commit
1387+
asynchronously when the default is the opposite, issue <command>SET
1388+
LOCAL synchronous_commit TO OFF</> within the transaction.
13881389
</para>
13891390
</listitem>
13901391
</varlistentry>

0 commit comments

Comments
 (0)