@@ -1634,8 +1634,9 @@ SET ENABLE_SEQSCAN TO OFF;
1634
1634
<para>
1635
1635
Specifies whether transaction commit will wait for WAL records
1636
1636
to be written to disk before the command returns a <quote>success</>
1637
- indication to the client. Valid values are <literal>on</>, <literal>remote_write</>,
1638
- <literal>local</>, and <literal>off</>. The default, and safe, value
1637
+ indication to the client. Valid values are <literal>on</>,
1638
+ <literal>remote_write</>, <literal>local</>, and <literal>off</>.
1639
+ The default, and safe, setting
1639
1640
is <literal>on</>. When <literal>off</>, there can be a delay between
1640
1641
when success is reported to the client and when the transaction is
1641
1642
really guaranteed to be safe against a server crash. (The maximum
@@ -1652,27 +1653,34 @@ SET ENABLE_SEQSCAN TO OFF;
1652
1653
</para>
1653
1654
<para>
1654
1655
If <xref linkend="guc-synchronous-standby-names"> is set, this
1655
- parameter also controls whether or not transaction commit will wait
1656
- for the transaction's WAL records to be flushed to disk and replicated
1657
- to the standby server. When <literal>remote_write</>, the commit wait will
1658
- last until a reply from the current synchronous standby indicates
1659
- it has received the commit record of the transaction to memory.
1660
- Normally this causes no data loss at the time of failover. However,
1661
- if both primary and standby crash, and the database cluster of
1662
- the primary gets corrupted, recent committed transactions might
1663
- be lost. When <literal>on</>, the commit wait will last until a reply
1664
- from the current synchronous standby indicates it has flushed
1665
- the commit record of the transaction to durable storage. This
1666
- avoids any data loss unless the database cluster of both primary and
1667
- standby gets corrupted simultaneously. If synchronous
1656
+ parameter also controls whether or not transaction commits will wait
1657
+ for the transaction's WAL records to be replicated to the standby
1658
+ server.
1659
+ When set to <literal>on</>, commits will wait until a reply
1660
+ from the current synchronous standby indicates it has received
1661
+ the commit record of the transaction and flushed it to disk. This
1662
+ ensures the transaction will not be lost unless both primary and
1663
+ standby suffer corruption of their database storage.
1664
+ When set to <literal>remote_write</>, commits will wait
1665
+ until a reply from the current synchronous standby indicates it has
1666
+ received the commit record of the transaction and written it out to
1667
+ the standby's operating system, but the data has not necessarily
1668
+ reached stable storage on the standby. This setting is sufficient to
1669
+ ensure data preservation even if the standby instance of
1670
+ <productname>PostgreSQL</> were to crash, but not if the standby
1671
+ suffers an operating-system-level crash.
1672
+ </para>
1673
+ <para>
1674
+ When synchronous
1668
1675
replication is in use, it will normally be sensible either to wait
1669
- for both local flush and replication of WAL records, or
1676
+ for both local flush to disk and replication of WAL records, or
1670
1677
to allow the transaction to commit asynchronously. However, the
1671
- special value <literal>local</> is available for transactions that
1678
+ setting <literal>local</> is available for transactions that
1672
1679
wish to wait for local flush to disk, but not synchronous replication.
1673
- If <varname>synchronous_standby_names</> is not set, <literal>on</>,
1674
- <literal>remote_write</> and <literal>local</> provide the same
1675
- synchronization level; transaction commit only waits for local flush.
1680
+ If <varname>synchronous_standby_names</> is not set, the settings
1681
+ <literal>on</>, <literal>remote_write</> and <literal>local</> all
1682
+ provide the same synchronization level: transaction commits only wait
1683
+ for local flush to disk.
1676
1684
</para>
1677
1685
<para>
1678
1686
This parameter can be changed at any time; the behavior for any
0 commit comments