Subject: [PATCH] Highlight that pg_receivewal doesn't acknowledge that WAL has been applied, and as such synchronous-commit needs to be remote_write or lower.

From: jesperpedersen <[email-masked]>
Date: Thu, 27 Jun 2019 09:54:44 -0400

Author: Jesper Pedersen <[email-masked]>
---
 doc/src/sgml/ref/pg_receivewal.sgml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml
index 0506120c00..132a599d1b 100644
--- a/doc/src/sgml/ref/pg_receivewal.sgml
+++ b/doc/src/sgml/ref/pg_receivewal.sgml
@@ -207,6 +207,14 @@ PostgreSQL documentation
         server as a synchronous standby, to ensure that timely feedback is
         sent to the server.
        </para>
+
+       <para>
+        Note, that <application>pg_receivewal</application> doesn't acknowledge
+        that the Write-Ahead Log (<xref linkend="wal-intro"/>) has been applied, so
+        <xref linkend="guc-synchronous-commit"/> needs to have a setting
+        of <literal>remote_write</literal> or lower, if <application>pg_receivewal</application>
+        is the only standby.
+       </para>
       </listitem>
      </varlistentry>
 
-- 
2.21.0

--------------8595400030F027059703A7ED--