- Newest
- Most votes
- Most comments
AWS DMS does not automatically detect new partitions created for a partitioned table, even if the table name matches an include filter. When a new partition is created in PostgreSQL, AWS DMS needs to be aware of this new table (partition), which doesn’t happen dynamically. This is why your DMS task is not capturing the changes to the new partition until the task is stopped and resumed. Stopping and resuming the task forces AWS DMS to re-evaluate the list of tables, including any new partitions created since the task was started.
Unfortunately, as of now, AWS DMS does not provide a native feature that automatically discovers and includes new partitions in ongoing replication without stopping and restarting the task. As a potential workaround, you would indeed need to create an automated process that monitors for new partition creation and stops/resumes the DMS task accordingly. Another approach could be managing partitions more explicitly in your DMS task configuration, but that still wouldn’t bypass the need for restarting the task when a new partition is added. This Blog outlines similar limitations and suggests strategies like predefining partitions or managing table mappings in such a way that all partitions are included from the start, but new partitions will still require manual intervention or automation to be included in replication.
