
Import data from another postgres cluster into your Managed Postgres Cluster
If you’re migrating to Fly Managed Postgres (MPG) from an unmanaged Fly Postgres cluster or another Postgres provider, you’ll need to import your data into your MPG cluster. There isn’t currently an automated way to migrate an existing DB’s data, but you can accomplish this with a standard Postgres dump and restore process after creating your MPG cluster. For simple databases, this can be as easy as running :-
Create your Managed Postgres cluster from the Fly.io dashboard, or using
fly mpg create -
Open a proxy connection to your MPG database with
-
Find your MPG cluster’s connection string in the dashboard, and modify it to use the local proxy:
-
Run the dump and restore command
- If everything succeeds, all data from your legacy cluster will be imported into your new MPG cluster.
Limitations
Some source databases may not be a good fit for importing into a Fly Managed Postgres cluster. Some common cases that will prevent imports are if your source database:- Relies on a third party extension that isn’t supported by MPG
- Is larger than 1 TB (the maximum storage limit for MPG clusters)
fly-user or another user with the schema_admin role.