- Newest
- Most votes
- Most comments
The issue you're experiencing is likely due to AWS DMS not being able to properly handle the DDL (Data Definition Language) change you made to your table in the source RDS PostgreSQL database. When you alter a column's data type, DMS needs to capture and apply this change to the target (in this case, Redshift). However, it seems that DMS encountered difficulties processing this specific ALTER TABLE statement.
To resolve this issue, you can try the following approaches:
-
Refresh the table metadata: Sometimes, DMS may not immediately recognize schema changes. You can try refreshing the table metadata in your DMS task. This can be done by:
- Stopping the task
- Modifying the task and selecting the option to reload tables
- Restarting the task
-
Update DMS task settings: Ensure that your DMS task is configured to handle DDL changes. In your task settings, check the "Change Processing DDL Handling Policy" section and make sure options like "Handle Source Table Altered" are enabled.
-
Manual intervention: If the automatic handling doesn't work, you might need to manually alter the table in the target Redshift database to match the new schema, and then restart the DMS task.
-
Review DMS version: Ensure you're using the latest version of AWS DMS, as newer versions often include improvements in handling various data types and DDL changes.
-
Check for limitations: Review the DMS documentation for any limitations related to altering column data types, especially when migrating from PostgreSQL to Redshift.
-
Consider using schema conversion: If you frequently make schema changes, you might want to explore using AWS Schema Conversion Tool (SCT) in conjunction with DMS to handle complex schema transformations.
If these steps don't resolve the issue, you may need to reach out to AWS Support for further assistance. They can provide more detailed, account-specific troubleshooting based on your exact DMS task configuration and logs.
Sources
Issue with AWS DMS Full Load + CDC Task Not Reflecting Newly Created Tables in Target DB | AWS re:Post
DMS replication error: malformed array literal | AWS re:Post
Relevant content
- asked 2 years ago