如何为 RDS PostgreSQL 数据库实例启用逻辑复制?对于 DMS?

How to enable logical replication for an RDS PostgreSQL DB instance ? for DMS?

场景是我想将 table 从 RDS postgreSQl 到 RDS postgreSQL。

但是我的数据迁移任务不工作并且有这个错误

Last Error Unable to use plugins to establish logical replication on source PostgreSQL instance. Follow all prerequisites for 'PostgreSQL as a source in DMS' from https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html Task error notification received from subtask 0, thread 0 [reptask/replicationtask.c:2880] [1020490] Remaining 1 error messages are truncated. Check the task log to find details Stop Reason FATAL_ERROR Error Level FATAL

按照这份文件,我应该

Set the rds.logical_replication parameter in your DB CLUSTER parameter group to 1

我试图在数据库中运行这个

ALTER SYSTEM SET rds.logical_replication TO 1;

我遇到了这个错误

[42501] ERROR: must be superuser to execute ALTER SYSTEM command

我认为您不能在 RDS 数据库上 运行 'ALTER SYSTEM' 语句。创建一个 rds.logical_replication 设置为 1 的参数组,并将该参数组关联到您的数据库实例。