aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2025-02-18 12:15:43 +0530
committerAmit Kapila <akapila@postgresql.org>2025-02-18 12:15:43 +0530
commit217919dd0954f54402e8d0a38cd203a740754077 (patch)
treee9a7a913d7a838bb7e43865a15dbf416210a7e58 /doc/src
parent53d3daa491be458e543dd5bf24d40595e588e4e7 (diff)
downloadpostgresql-217919dd0954f54402e8d0a38cd203a740754077.tar.gz
postgresql-217919dd0954f54402e8d0a38cd203a740754077.zip
Raise a WARNING for max_slot_wal_keep_size in pg_createsubscriber.
During the pg_createsubscriber execution, it is possible that the required WAL is removed from the primary/publisher node due to 'max_slot_wal_keep_size'. This patch raises a WARNING during the '--dry-run' mode if the 'max_slot_wal_keep_size' is set to a non-default value on the primary/publisher node. Author: Shubham Khanna <khannashubham1197@gmail.com> Reviewed-by: Peter Smith <smithpb2250@gmail.com> Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com> Reviewed-by: Vignesh C <vignesh21@gmail.com> Discussion: https://postgr.es/m/CAHv8Rj+deqsQXOMa7Tck8CBQUbsua=+4AuMVQ2=MPM0f-ZHbjA@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/pg_createsubscriber.sgml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_createsubscriber.sgml b/doc/src/sgml/ref/pg_createsubscriber.sgml
index 26b8e64a4e0..d56487fe2ca 100644
--- a/doc/src/sgml/ref/pg_createsubscriber.sgml
+++ b/doc/src/sgml/ref/pg_createsubscriber.sgml
@@ -377,6 +377,13 @@ PostgreSQL documentation
server. If the target server has a standby, replication will break and a
fresh standby should be created.
</para>
+
+ <para>
+ Replication failures can occur if required WAL files are missing. To prevent
+ this, the source server must set
+ <xref linkend="guc-max-slot-wal-keep-size"/> to <literal>-1</literal> to
+ ensure that required WAL files are not prematurely removed.
+ </para>
</refsect2>
<refsect2>