Skip to content

planetscale/migration-scripts

Repository files navigation

Migration scripts for moving into PlanetScale

Use these scripts to migrate a Postgres database to PlanetScale for Postgres or Vitess/MySQL.

This direct migration uses logical replication and, optionally, a proxy which can manage connections and sequences for a zero-downtime migration.

Heroku notably does not support logical replication. This strategy uses Bucardo to manage trigger-based asynchronous replication from Heroku into PlanetScale for Postgres.

This has some speed limitations and is only recommended for databases 100GB or less.

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.

About

Scripts for migrating from Postgres to PlanetScale

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages