Azure Postgresql从单一服务器v11迁移到灵活服务器v14-权限被拒绝



我在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平台完成的,并遵循以下指南。另外,问题似乎出在两个数据库上都启用了subpg扩展上。

指南:https://learn.microsoft.com/en-us/azure/postgresql/migrate/how-to-migrate-single-to-flexible-portalhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/concepts-single-to-flexiblehttps://learn.microsoft.com/en-us/azure/postgresql/migrate/concepts-single-to-flexible#migration-先决条件

请在迁移之前将hypog扩展放到源服务器上(对于在中创建扩展的每个DB(:并尝试一下。如果存在下坠,则下坠延伸;如果需要,可以在源上迁移后重新创建它:创建扩展子页面;

由于某些原因,HypoPG扩展似乎已安装在pg_catalog模式中。将其移动到旧数据库上的另一个模式:

ALTER EXTENSION hypopg SET SCHEMA public;

最新更新