在 Amazon Postgres RDS 上设置会话授权的权限被拒绝

Permission denied to SET SESSION AUTHORIZATION on Amazon Postgres RDS

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

我们在应用程序后面使用 RDS,并且我们在 RDS 上的数据库超级用户不断获得 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 相关功能,有限的扩展列表等)