Migrating Amazon RDS for PostgreSQL to Amazon Aurora using seeded logical replication
Database Blog
This article explains how to migrate from Amazon RDS for PostgreSQL to Amazon Aurora PostgreSQL using seeded logical replication, addressing the critical LSN (log sequence number) divergence challenge.
- LSN divergence occurs because RDS and Aurora use fundamentally different transaction log architectures
- Extract seed LSN from temporary RDS instance restored from same snapshot as Aurora target
- Two migration options: Publisher-subscriber model or AWS DMS CDC-only task for ongoing replication
- Seeded logical replication enables hot standby Aurora cluster with multi-reader topology for load testing
- Monitor CloudWatch metrics (OldestReplicationSlotLag, ReplicationSlotDiskUsage, FreeStorageSpace) to prevent storage outages
- Logical replication doesn't replicate schema, DDL, large objects, or sequences
- Straightforward rollback available since source RDS remains fully operational throughout
This approach enables realistic production-like load testing on Aurora before cutover with zero read downtime and supports combined migration-upgrade scenarios.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Jun 3
2026
2026
Migrating data from Oracle to Amazon Aurora DSQL
Jun 10
2026
2026
How to migrate from Oracle to Amazon Aurora PostgreSQL using AWS CloudFormation (Part 1)
Jul 1
2024
2024
AWS DMS homogenous migration from PostgreSQL to Amazon Aurora PostgreSQL
Jun 4
2025
2025
Migrate Google Cloud SQL for PostgreSQL to Amazon RDS and Amazon Aurora using pglogical
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.