Skip to content

Commit 8af3c23

Browse files
author
Amit Kapila
committed
Clarify the usage of max_replication_slots on the subscriber side.
It was not clear in the docs that the max_replication_slots is also used to track replication origins on the subscriber side. Author: Paul Martinez Reviewed-by: Amit Kapila Backpatch-through: 10 where logical replication was introduced Discussion: https://postgr.es/m/CACqFVBZgwCN_pHnW6dMNCrOS7tiHCw6Retf_=U2Vvj3aUSeATw@mail.gmail.com
1 parent e527a99 commit 8af3c23

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

doc/src/sgml/config.sgml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,6 +4001,17 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
40014001
to <literal>replica</literal> or higher to allow replication slots to
40024002
be used.
40034003
</para>
4004+
4005+
<para>
4006+
On the subscriber side, specifies how many replication origins (see
4007+
<xref linkend="replication-origins"/>) can be tracked simultaneously,
4008+
effectively limiting how many logical replication subscriptions can
4009+
be created on the server. Setting it a lower value than the current
4010+
number of tracked replication origins (reflected in
4011+
<link linkend="view-pg-replication-origin-status">pg_replication_origin_status</link>,
4012+
not <link linkend="catalog-pg-replication-origin">pg_replication_origin</link>)
4013+
will prevent the server from starting.
4014+
</para>
40044015
</listitem>
40054016
</varlistentry>
40064017

doc/src/sgml/logical-replication.sgml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,12 @@
603603

604604
<para>
605605
The subscriber also requires the <varname>max_replication_slots</varname>
606-
to be set. In this case it should be set to at least the number of
607-
subscriptions that will be added to the subscriber, plus some reserve for
608-
table synchronization. <varname>max_logical_replication_workers</varname>
609-
must be set to at least the number of subscriptions, again plus some reserve
610-
for the table synchronization. Additionally the <varname>max_worker_processes</varname>
606+
be set to configure how many replication origins can be tracked. In this
607+
case it should be set to at least the number of subscriptions that will be
608+
added to the subscriber, plus some reserve for table synchronization.
609+
<varname>max_logical_replication_workers</varname> must be set to at least
610+
the number of subscriptions, again plus some reserve for the table
611+
synchronization. Additionally the <varname>max_worker_processes</varname>
611612
may need to be adjusted to accommodate for replication workers, at least
612613
(<varname>max_logical_replication_workers</varname>
613614
+ <literal>1</literal>). Note that some extensions and parallel queries

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