How do i migrate from Google Cloud managed pgsql database to a digital ocean managed pgsql server.

Posted July 7, 2020 1.1k views
PostgreSQLDigitalOcean Managed PostgreSQL Database

The challenge here is both the source and destination server are both managed servers.

So how can i move from Google’s managed database to digital oceans managed server.

Digital ocean resources. Doesn’t quite seem to apply for this instance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi there

Thanks for reaching out to DigitalOcean Support.

I am glad to hear that you want to migrate your database to managed database.

DigitalOcean Database
To start with you’ll need an DigitalOcean Managed PostgreSQL database, in order to create one you can follow the instructions in our
DigitalOcean PostgreSQL allows you to easily switch between different plan sizes but at least for the duration of the dumping process it usually makes sense to conservatively pick a plan size that is large enough for the task. This allows you to limit the downtime during the migration process by having a sufficiently powerful PostgreSQL plan.

Users & databases in the target database

If just using the defaultdb that DigitalOcean creates for you automatically is not sufficient you can create more databases and database users. The default user account doadmin can also directly create databases but for convenience’s sake we recommend creating them through our Web console. To create these you can go to the web console and create them through the “User & Databases” tab.

Backup your database and import

We have a great documentation that explains importing a database and running “ANALYZE” to optimize performance:

You do not need to worry about the “pg_*” tables that only a superuser can analyze. Those are maintained by our administrative service.

Please let us know if you have additional questions/concerns. We would be happy to assist you.

DigitalOcean Support