postgresql_16:4.5.6.4 Subscribers
PostgreSQL 16 > Server Administration > Server Configuration > Replication > Subscribers
These settings control the behavior of a logical replication subscriber. Their values on the publisher are irrelevant. See (see postgresql_16:4.16.10) for more details.
max_replication_slots (integer)
Specifies how many replication origins (see (see postgresql_16:6.13)) can be tracked simultaneously, effectively limiting how many logical replication subscriptions can be created on the server. Setting it to a lower value than the current number of tracked replication origins (reflected in pg_replication_origin_status (see postgresql_16:8.3.18)) will prevent the server from starting. max_replication_slots must be set to at least the number of subscriptions that will be added to the subscriber, plus some reserve for table synchronization.
Note that this parameter also applies on a sending server, but with a different meaning.
max_logical_replication_workers (integer)
Specifies maximum number of logical replication workers. This includes leader apply workers, parallel apply workers, and table synchronization workers.
Logical replication workers are taken from the pool defined by max_worker_processes.
The default value is 4. This parameter can only be set at server start.
max_sync_workers_per_subscription (integer)
Maximum number of synchronization workers per subscription. This parameter controls the amount of parallelism of the initial data copy during the subscription initialization or when new tables are added.
Currently, there can be only one synchronization worker per table.
The synchronization workers are taken from the pool defined by max_logical_replication_workers.
The default value is 2. This parameter can only be set in the postgresql.conf file or on the server command line.
max_parallel_apply_workers_per_subscription (integer)
Maximum number of parallel apply workers per subscription. This parameter controls the amount of parallelism for streaming of in-progress transactions with subscription parameter streaming = parallel.
The parallel apply workers are taken from the pool defined by max_logical_replication_workers.
The default value is 2. This parameter can only be set in the postgresql.conf file or on the server command line.