我正在尝试在 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
但它也无济于事。
任何提示都非常受欢迎。
谢谢