Cloud Migration Service (CT-CMS)

Configure Sync Tasks with Self-built PostgreSQL Database as Source

2024-12-27 03:01:37

Before You Begin

(1) The source self-built PostgreSQL database version is 9.5.x, 9.6.x, 10.x, 11.x, 12.x, 13.x, or 14.x.

(2) In a self-built PostgreSQL database, set wal_level=logical for the WAL log, and max_replication_slots is greater than 10.

(3) The storage space of the target database must be greater than that used by the source database.

(4) During incremental data synchronization, the CMS creates a replication slot with the suffix _cloud_log_slot in the source database to replicate data.

(5) After the task is complete, the replication slot is automatically deleted. If you change the database password or delete the IP address trustlist during the migration, the replication slot cannot be automatically deleted. In this case, you must manually delete the replication slot on the source database. This prevents RDS PostgreSQL instances from becoming unavailable due to continuous accumulation of disk space usage.

(6) If an active/standby switchover occurs in the PostgreSQL database, log in to the standby database to manually clean up the database.

Limitations

Tables without primary keys support only stock data synchronization, not incremental synchronization.

During migration, the table structure, full data, and incremental data on the source database can be synchronized.

Permission Requirements of Source Server

Migration Mode

Required Permissions

Full Data Migration

Schema level: USAGE

Table level: SELECT

Incremental Data Migration

The user is a super user or a replication role.

Method to assign a replication role: alter user username with replication

Schema level: USAGE

Table level: SELECT

Auditing Repair

Schema level: USAGE

Table level: SELECT

Configuration on Source Server

 

Data source type: Set this parameter to PostgreSQL. The PostgreSQL databases within the version range can be synchronized.

Server IP: Specifies the IP address of the source database to be synchronized.

Port number: Specifies the port of the source database to be synchronized.

User name: Specifies a user name used to connect to the source database to be synchronized.

Password: Specifies the password of the user used to connect to the source database to be synchronized.

Database: Specifies the name of the source database to be synchronized.

Schema: Specifies the schema name used by the source server from which data is migrated.


24jCkfeUM25G