From: Amit Kapila Date: Wed, 3 Mar 2021 06:19:12 +0000 (+0530) Subject: Clarify the usage of max_replication_slots on the subscriber side. X-Git-Tag: REL_10_17~58 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=90c737669fd2ab8e02ef7e8200adbce6fccf5c65;p=postgresql.git 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 --- diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 159aedb99ce..f1731779d8e 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3091,6 +3091,17 @@ include_dir 'conf.d' be used. Setting it to a lower value than the number of currently existing replication slots will prevent the server from starting. + + + On the subscriber side, specifies how many replication origins (see + ) can be tracked simultaneously, + effectively limiting how many logical replication subscriptions can + be created on the server. Setting it a lower value than the current + number of tracked replication origins (reflected in + pg_replication_origin_status, + not pg_replication_origin) + will prevent the server from starting. + diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml index 6e725c5037d..b6a14a51722 100644 --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -570,11 +570,11 @@ The subscriber also requires the max_replication_slots - to be set. In this case it should be set to at least the number of - subscriptions that will be added to the subscriber. - max_logical_replication_workers must be set to at - least the number of subscriptions, again plus some reserve for the table - synchronization. Additionally the max_worker_processes + be set to configure how many replication origins can be tracked. In this + case it should be set to at least the number of subscriptions that will be + added to the subscriber. max_logical_replication_workers + must be set to at least the number of subscriptions, again plus some reserve + for the table synchronization. Additionally the max_worker_processes may need to be adjusted to accommodate for replication workers, at least (max_logical_replication_workers + 1). Note that some extensions and parallel queries