Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How We Migrated from Heroku Postgres to AWS RDS

说明与用途

团队将数据库从 Heroku Postgres 迁移到 AWS RDS,降低成本并获得更好的配置控制。

问题

The team needed to move their production database from Heroku Postgres to AWS RDS to reduce costs and gain more control over the database environment.

结果

The migration completed with minimal downtime and reduced monthly database costs.

工作流

  • 1. Created a new PostgreSQL instance on AWS RDS.
  • 2. Used pg_dump to export the Heroku database to a .sql file.
  • 3. Transferred the dump file to an EC2 instance or directly to RDS using psql.
  • 4. Restored the dump into the RDS instance with pg_restore or psql.
  • 5. Updated application configuration to point to the new RDS endpoint.
  • 6. Performed a data integrity check and switched traffic to the new database.

证据

We created a new PostgreSQL instance on AWS RDS.

来源

We used pg_dump to export the Heroku database to a .sql file.

来源

We transferred the dump file to an EC2 instance or directly to RDS using psql.

来源

We restored the dump into the RDS instance with pg_restore or psql.

来源

  • 记录日期: 2026-10-02T10:40:54.686Z