Thanks for reaching out to DigitalOcean Support.
I am glad to hear that you want to migrate your database to managed 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: https://www.digitalocean.com/docs/databases/how-to/postgresql/import-databases
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.