postgresql_16:4.16.10.2 Subscribers
PostgreSQL 16 > Server Administration > Logical Replication > Configuration Settings > Subscribers
max_replication_slots (see guc-max-replication-slots-subscriber) must be set to at least the number of subscriptions that will be added to the subscriber, plus some reserve for table synchronization.
max_logical_replication_workers (see guc-max-logical-replication-workers) must be set to at least the number of subscriptions (for leader apply workers), plus some reserve for the table synchronization workers and parallel apply workers.
max_worker_processes (see guc-max-worker-processes) may need to be adjusted to accommodate for replication workers, at least (max_logical_replication_workers (see guc-max-logical-replication-workers) + 1). Note, some extensions and parallel queries also take worker slots from max_worker_processes.
max_sync_workers_per_subscription (see guc-max-sync-workers-per-subscription) controls the amount of parallelism of the initial data copy during the subscription initialization or when new tables are added.
max_parallel_apply_workers_per_subscription (see guc-max-parallel-apply-workers-per-subscription) controls the amount of parallelism for streaming of in-progress transactions with subscription parameter streaming = parallel.
Logical replication workers are also affected by wal_receiver_timeout (see guc-wal-receiver-timeout), wal_receiver_status_interval (see guc-wal-receiver-status-interval) and wal_retrieve_retry_interval (see guc-wal-retrieve-retry-interval).