- Newest
- Most votes
- Most comments
Kindly note that there is no direct method to convert/migrate from Aurora PostgreSQL to RDS PostgreSQL. However, as a work-around, I have shared a couple of alternatives that you could review further.
-
Using PostgreSQL native tools such as pg_dump and pg_restore. A) Since Aurora PostgreSQL and PostgreSQL have the same underlying engine, using the engine's native tools is usually the best way to perform migrations. Take the pg_dump from Aurora PostgreSQL and restore the dump into the newly created RDS instance. Please follow the link [1] below for detailed steps: I) Create a dump using pg_dump that contains the data to be loaded[2]. II) Create the target RDS DB instance III) Use psql to create the database on the DB instance and load the data or use pg_restore IV) Create a DB snapshot of the RDS DB instance
-
Using AWS Database Migration Service (AWS DMS)[3]. A) AWS DMS is a cloud service that makes it easy to migrate relational databases, data warehouses, NoSQL databases, and other types of data stores.
B) With AWS DMS, we can perform one-time migrations (full-load), and you can replicate ongoing changes to keep sources and targets in sync[4]. AWS DMS provides minimum downtime, but the setup can be complex and might need a learning curve.
C) With that said, there are also some limitations on using PostgreSQL as source and target endpoint, as specified in Document links [5-8].
[1] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Procedural.Importing.html
[2] https://www.postgresql.org/docs/8.3/backup.html
[3] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Introduction.html
[4] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Introduction.Components.html
[5] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html
[6] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Reference.Source.PostgreSQL.DataTypes.html
[7] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html
[8] http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Reference.Target.PostgreSQL.DataTypes.html
Relevant content
- asked 10 months ago
- Accepted Answerasked 5 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago