AWS Database Migration Service (DMS) facilitates data migrations to AWS with data security and integrity for PostgreSQL databases.AWS DMS supports both homogeneous and heterogeneous migrations, providing robust pathways for businesses to transition to the cloud.It is important to plan for PostgreSQL upgrades when they are no longer supported or to introduce new improvements and maintain data compliance.Best practices are discussed for handling AWS DMS tasks during PostgreSQL upgrades to minor or major versions.Understanding the differences between major and minor version upgrades in PostgreSQL is crucial for upgrade planning.Downtime is expected for both minor and major version upgrades in PostgreSQL and should be scheduled during low database query times.During full loads and CDC tasks with AWS DMS, logical replication slots play a critical role in capturing ongoing changes.For source PostgreSQL upgrades, ongoing AWS DMS tasks should be stopped before minor version upgrades and resumed after completion.For major version upgrades, careful steps are needed to handle replication slots and manage ongoing replication tasks effectively.When upgrading the target PostgreSQL database, AWS DMS CDC tasks are affected differently by minor and major version upgrades.