PostgreSQL version:

max_sync_workers_per_subscription

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.

Recommendations

Consider raising to cores/2 when initially synchronizing logical replication for a new replica.

Comments

Type: integer
Default: 2
Min: 0
Max: 262143
Context: sighup
Restart: false
Since: 10