Skip to content

Commit 6e8e7cc

Browse files
Update docs to say you need fsync to make sync rep work fast.
1 parent 8df08c8 commit 6e8e7cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/src/sgml/high-availability.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ synchronous_replication = on
947947
<para>
948948
After a commit record has been written to disk on the primary the
949949
WAL record is then sent to the standby. The standby sends reply
950-
messages each time a new batch of WAL data is received, unless
950+
messages each time a new batch of WAL data is written to disk, unless
951951
<varname>wal_receiver_status_interval</> is set to zero on the standby.
952952
If the standby is the first matching standby, as specified in
953953
<varname>synchronous_standby_names</> on the primary, the reply
@@ -1013,6 +1013,12 @@ synchronous_replication = on
10131013
the rate of generation of WAL data.
10141014
</para>
10151015

1016+
<para>
1017+
Replies are only sent when WAL is written to disk, so setting
1018+
<varname>fsync</> to <literal>off</> on the standby will significantly
1019+
reduce performance of synchronous replication and should be avoided.
1020+
</para>
1021+
10161022
</sect3>
10171023

10181024
<sect3 id="synchronous-replication-ha">

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