https://github.com/planetscale/migration-scripts
Scripts for migrating from Postgres to PlanetScale
https://github.com/planetscale/migration-scripts
Last synced: 11 months ago
JSON representation
Scripts for migrating from Postgres to PlanetScale
- Host: GitHub
- URL: https://github.com/planetscale/migration-scripts
- Owner: planetscale
- License: apache-2.0
- Created: 2025-05-29T18:04:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-07T06:12:45.000Z (11 months ago)
- Last Synced: 2025-08-07T08:22:50.061Z (11 months ago)
- Language: Shell
- Size: 66.4 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Migration scripts for moving into PlanetScale
Use these scripts to migrate a Postgres database to PlanetScale for Postgres or Vitess/MySQL.
## [Postgres directly to PlanetScale for Postgres](./postgres-direct)
This direct migration uses logical replication and, optionally, a proxy which can manage connections and sequences for a zero-downtime migration.
## [Heroku Postgres to PlanetScale for Postgres](./heroku-planetscale)
Heroku notably does not support logical replication. This strategy uses Bucardo to manage trigger-based asynchronous replication from Heroku into PlanetScale for Postgres.
## [Postgres to PlanetScale for Postgres or Vitess/MySQL via AWS DMS](./postgres-planetscale)
This has some speed limitations and is only recommended for databases 100GB or less.
## [Postgres to PlanetScale for Vitess/MySQL via AWS DMS and an intermediate MySQL](./postgres-mysql-planetscale)
Thanks to the intermediate MySQL database, this runs faster than the variant above, but has the downside of requiring an additional MySQL instance running during the migration, which adds cost and complexity to the import.
Recommended for larger imports > 100GB.