Share via

Migration Postgresql to Azure database for Postgresql

sakuraime 2,351 Reputation points
2020-09-23T07:25:12.733+00:00

May I know if there are option to do migration using dump and restore using incremental method to lower the down time ?

pg_dump , pg_restore

Azure Database for PostgreSQL
0 comments No comments

Answer accepted by question author

Anurag Sharma 17,636 Reputation points
2020-09-23T08:14:12.6+00:00

Hi @sakuraime , welcome to Microsoft Q&A forum.

To address your query, currently there is no mechanism to migrate the data from PostgreSQL to Azure Database for PostgreSQL using pg_dump and pg_restore for incremental data sync.
However to lower the downtime, you can use a high compute and high memory sku, like 32 vCore Memory Optimized, to speed up the migration. You can easily scale back down to your preferred sku after the restore is complete. The higher the sku, the more parallelism you can achieve by increasing the corresponding -j parameter in the pg_restore command. (refer to link)

Alternative approach is to use the Azure Data Factory to create a pipeline to migrate incremental data but it cannot use the dump file. For more details refer to below link:
https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/bring-your-data-to-azure-database-for-postgresql-hyperscale/ba-p/857975

----------

If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.