Migrating partitioned table from postgres to Redshift with pglogical

0

I've created a DMS task of CDC and Full Load, migrating data from postgres 14 to Redshift. According to the documentation, when using pglogical and creating postgres publication with 'publish_via_partition_root' parameter of my partitioned table, changes should be published to the parent table and to to child tables. However, the data is still migrated to the child tables in Redshift and not to the parent table. Am I missing something thats needs to be configured or is it just not possible in DMS?

已提問 2 年前檢視次數 219 次
1 個回答
0

Hi,

There are currently some points that should be taken into consideration when using PostgreSQL as a source database in DMS. For the moment, when a partitioned table is detected, the following occurs:

  • The endpoint reports a list of parent and child tables.
  • AWS DMS creates the table on the target as a regular table with the same properties as the selected tables.
  • If the parent table in the source database has the same primary key value as its child tables, a "duplicate key" error is generated.

You can find the full list of limitations when using PostgreSQL as a DMS source on https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.Limitations

Thanks.

AWS
專家
Ziad
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南