【发布时间】:2022-11-04 23:51:51
【问题描述】:
在 postgresql 单服务器和灵活服务器之间执行迁移时出现此错误:
Data migration could not be started for one or more of the DBSets. Error details: PGv2RestoreError: PG Restore failed for database 'postgres' with exit code '1' and error message 'error: could not execute query: ERROR: permission denied to create "pg_catalog.hypopg_list_indexes"'.
这很清楚地表明正在执行迁移的用户无权通过在 pg_catalog 中创建扩展来执行某些操作。问题是在 Azure 中我不能拥有超级用户,所以似乎没有办法执行此操作。每一步都是使用 azure 平台并按照以下指南完成的。 看起来问题出在hypopg扩展上,这在两个数据库上都启用了。
指南: https://learn.microsoft.com/en-us/azure/postgresql/migrate/how-to-migrate-single-to-flexible-portal https://learn.microsoft.com/en-us/azure/postgresql/migrate/concepts-single-to-flexible https://learn.microsoft.com/en-us/azure/postgresql/migrate/concepts-single-to-flexible#migration-prerequisites
【问题讨论】:
标签: postgresql azure database-migration