@@ -4156,7 +4156,13 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
41564156 <para>
41574157 These settings control the behavior of the built-in
41584158 <firstterm>streaming replication</firstterm> feature (see
4159- <xref linkend="streaming-replication"/>). Servers will be either a
4159+ <xref linkend="streaming-replication"/>), and the built-in
4160+ <firstterm>logical replication</firstterm> feature (see
4161+ <xref linkend="logical-replication"/>).
4162+ </para>
4163+
4164+ <para>
4165+ For <emphasis>streaming replication</emphasis>, servers will be either a
41604166 primary or a standby server. Primaries can send data, while standbys
41614167 are always receivers of replicated data. When cascading replication
41624168 (see <xref linkend="cascading-replication"/>) is used, standby servers
@@ -4166,6 +4172,17 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
41664172 across the cluster without problems if that is required.
41674173 </para>
41684174
4175+ <para>
4176+ For <emphasis>logical replication</emphasis>, <firstterm>publishers</firstterm>
4177+ (servers that do <link linkend="sql-createpublication"><command>CREATE PUBLICATION</command></link>)
4178+ replicate data to <firstterm>subscribers</firstterm>
4179+ (servers that do <link linkend="sql-createsubscription"><command>CREATE SUBSCRIPTION</command></link>).
4180+ Servers can also be publishers and subscribers at the same time. Note,
4181+ the following sections refer to publishers as "senders". For more details
4182+ about logical replication configuration settings refer to
4183+ <xref linkend="logical-replication-config"/>.
4184+ </para>
4185+
41694186 <sect2 id="runtime-config-replication-sender">
41704187 <title>Sending Servers</title>
41714188
@@ -4213,6 +4230,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
42134230 <term><varname>max_replication_slots</varname> (<type>integer</type>)
42144231 <indexterm>
42154232 <primary><varname>max_replication_slots</varname> configuration parameter</primary>
4233+ <secondary>in a sending server</secondary>
42164234 </indexterm>
42174235 </term>
42184236 <listitem>
@@ -4229,14 +4247,8 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
42294247 </para>
42304248
42314249 <para>
4232- On the subscriber side, specifies how many replication origins (see
4233- <xref linkend="replication-origins"/>) can be tracked simultaneously,
4234- effectively limiting how many logical replication subscriptions can
4235- be created on the server. Setting it to a lower value than the current
4236- number of tracked replication origins (reflected in
4237- <link linkend="view-pg-replication-origin-status">pg_replication_origin_status</link>,
4238- not <link linkend="catalog-pg-replication-origin">pg_replication_origin</link>)
4239- will prevent the server from starting.
4250+ Note that this parameter also applies on the subscriber side, but with
4251+ a different meaning.
42404252 </para>
42414253 </listitem>
42424254 </varlistentry>
@@ -4914,17 +4926,39 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
49144926 <para>
49154927 These settings control the behavior of a logical replication subscriber.
49164928 Their values on the publisher are irrelevant.
4917- </para>
4918-
4919- <para>
4920- Note that <varname>wal_receiver_timeout</varname>,
4921- <varname>wal_receiver_status_interval</varname> and
4922- <varname>wal_retrieve_retry_interval</varname> configuration parameters
4923- affect the logical replication workers as well.
4929+ See <xref linkend="logical-replication-config"/> for more details.
49244930 </para>
49254931
49264932 <variablelist>
49274933
4934+ <varlistentry id="guc-max-replication-slots-subscriber" xreflabel="max_replication_slots">
4935+ <term><varname>max_replication_slots</varname> (<type>integer</type>)
4936+ <indexterm>
4937+ <primary><varname>max_replication_slots</varname> configuration parameter</primary>
4938+ <secondary>in a subscriber</secondary>
4939+ </indexterm>
4940+ </term>
4941+ <listitem>
4942+ <para>
4943+ Specifies how many replication origins (see
4944+ <xref linkend="replication-origins"/>) can be tracked simultaneously,
4945+ effectively limiting how many logical replication subscriptions can
4946+ be created on the server. Setting it to a lower value than the current
4947+ number of tracked replication origins (reflected in
4948+ <link linkend="view-pg-replication-origin-status">pg_replication_origin_status</link>)
4949+ will prevent the server from starting.
4950+ <literal>max_replication_slots</literal> must be set to at least the
4951+ number of subscriptions that will be added to the subscriber, plus some
4952+ reserve for table synchronization.
4953+ </para>
4954+
4955+ <para>
4956+ Note that this parameter also applies on a sending server, but with
4957+ a different meaning.
4958+ </para>
4959+ </listitem>
4960+ </varlistentry>
4961+
49284962 <varlistentry id="guc-max-logical-replication-workers" xreflabel="max_logical_replication_workers">
49294963 <term><varname>max_logical_replication_workers</varname> (<type>integer</type>)
49304964 <indexterm>
0 commit comments