If you select incremental migration as the migration type, you need to check the following conditions; otherwise, the verification will fail.
wal_level
in the source database must be set to logical
.max_replication_slots
and max_wal_senders
values in the target database must be greater than the total number of databases to be migrated.max_worker_processes
value in the target database must be greater than the max_logical_replication_workers
value.If the version does not meet the requirements, you need to upgrade it. You can change the values of the wal_level
, max_replication_slots
, max_worker_processes
, and max_wal_senders
as follows:
Note:
- If the source database is self-built, you need to log in to the server where the database runs and enter the main data directory of the database, which is usually
$PGDATA
.- If the source database is in another cloud, modify the parameters as requested by the corresponding cloud vendor.
- If you need to modify the parameters in the target database, submit a ticket for assistance.
postgresql.conf
file and modify wal_level
.wal_level = logical
postgres=> select name,setting from pg_settings where name='wal_level';
name | setting
-----------+---------
wal_level | logical
(1 row)
postgres=> select name,setting from pg_settings where name='max_replication_slots';
name | setting
-----------------------+---------
max_replication_slots | 10
(1 row)
postgres=> select name,setting from pg_settings where name='max_wal_senders';
name | setting
-----------------+---------
max_wal_senders | 10
(1 row)
Was this page helpful?