GitHunt
MR

mrrooijen/planetscale-migration-scripts

Scripts for migrating from Postgres to PlanetScale

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

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 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 via AWS DMS

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

Postgres to PlanetScale for Vitess via AWS DMS and an intermediate MySQL

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.

mrrooijen/planetscale-migration-scripts | GitHunt