【问题标题】:Azure Postgresql migartion from single server v11 to flexible server v14 - permission deniedAzure Postgresql 从单服务器 v11 迁移到灵活服务器 v14 - 权限被拒绝
【发布时间】: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


    【解决方案1】:

    出于某种原因,HypoPG 扩展似乎已安装在 pg_catalog 架构中。将其移动到旧数据库上的不同模式:

    ALTER EXTENSION hypopg SET SCHEMA public;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-12-29
      • 2014-08-30
      • 2018-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-03
      相关资源
      最近更新 更多