0

我正在尝试在 Azure 上恢复 postgres 转储。

大多数恢复都做得很好,一个问题让我有些头疼:postgres角色。

在大多数 postgres 数据库中,postgres 角色默认设置为超级用户。

在 Azure 中,postgres 角色设置为没有超级用户权限的普通角色。

我正在使用此命令行还原到 Azure 上的数据库

pg_restore -x --host dwwhatever.postgres.database.azure.com --port 5432 --username "avocado@dwwhatever" --dbname "BI_DB" --no-password --verbose "C:\Users\andyk\Desktop\report.backup"

已知-x的 as--no-acl应该允许我没有任何角色授予,但它不起作用。

我有这个。

在此处输入图像描述

我尝试将 Azure 中唯一可用的“超级用户”角色授予该azure_pg_admin角色,postgres但它也无济于事。

任何提示都非常受欢迎。

谢谢

4

0 回答 0