对于我的应用程序,有时我需要设置 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/