postgresql - 在 Amazon Postgres RDS 上设置 session 授权的权限被拒绝

标签 postgresql amazon-web-services amazon-rds database-permissions

对于我的应用程序,有时我需要设置 session 授权以在给定用户的权限下执行某些命令。

我们在应用程序背后使用了一个 RDS,而我们在 RDS 上的数据库 super 用户一直得到 permission denied to set session authorization

有没有办法在 RDS 上启用它?或者它只是不受支持的操作?

提前致谢!

最佳答案

唉,rds_superuser 的局限性 are not documented

The rds_superuser role is a pre-defined Amazon RDS role similar to the PostgreSQL superuser role (customarily named postgres in local instances), but with some restrictions. As with the PostgreSQL superuser role, the rds_superuser role has the most privileges on your DB instance

因此,如果您使用 rds_superuser 获得 permission denied,您可能无法这样做...(因为一些更广为人知的限制,例如所有权覆盖、fs 相关函数、有限的扩展列表和等等)

关于postgresql - 在 Amazon Postgres RDS 上设置 session 授权的权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46981873/

相关文章:

amazon-web-services - 如何使用 SAM local generate event with queryparameters 生成事件?

amazon-web-services - 如何横向扩展 Amazon RDS 实例?

postgresql - 查询中的两个 array_aggs 是否共享同一个窗口?

sql - 为什么这个子选择有效?不存在 FROM 子句

sql - PostgreSQL 交叉表查询

python - 在程序的后面部分使用变量(python)

javascript - 将自定义字符串发送到 AWS SNS

python - 使用 peewee 访问远程 MySQL 数据库

java - Springboot 1.5.9版本无法连接mysql RDS

sql - 检查 SELECT 中子查询的结果是否存在