gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 06:43:29 26 4
gpt4 key购买 nike

我在 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中我不能有 super 用户,所以似乎没有办法执行这个操作。每一步都是使用 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

最佳答案

请在迁移之前在源服务器上删除hypopg扩展(对于创建扩展的每个数据库):并尝试一下。如果存在则删除扩展;hypopg;如果需要,可以在源上迁移后重新创建它:创建扩展hypg;

关于postgresql - Azure Postgresql 从单服务器 v11 迁移到灵活服务器 v14 - 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74318794/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com