简体   繁体   English

在AWS中使用PGAdmin备份PostgreSql DB时出错

[英]Error backup PostgreSql DB's using PGAdmin in AWS

I am getting this error when trying to backup the data bases in the PGAdmin of PostGreSql to my computer: 尝试将PostGreSql PGAdmin中的数据库备份到我的计算机时出现此错误:

pg_dump: [archiver (db)] query failed: ERROR: permission denied to set role "xxx" pg_dump: [archiver (db)] query was: SET ROLE xxx pg_dump:[存档(db)]查询失败:错误:拒绝设置角色“ xxx”的权限pg_dump:[存档(db)]查询为:SET ROLE xxx

I can read from the tables and view all of the tables 我可以从表格中读取并查看所有表格

You need to enter the with owner permissions to create the backup. 您需要输入具有所有者权限才能创建备份。 The error might be because of the username (you are entering) has only read permissions or if not then the username might not be given the privilege. 该错误可能是由于用户名(您正在输入)仅具有读取权限,或者如果没有,则可能没有为用户名赋予特权。 Login with the owner of the database and then create the backup. 用数据库的所有者登录,然后创建备份。 There won't be any error in backup. 备份不会有任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM