我现在的用户是 pronto
mediapop_staging=> select current_user;
current_user
--------------
pronto
(1 row)
Run Code Online (Sandbox Code Playgroud)
此用户是在 AWS RDS 上创建的标准超级用户。
mediapop_staging=> \du pronto
List of roles
Role name | Attributes | Member of
-----------+-------------------------------+-----------------
pronto | Create role, Create DB +| {rds_superuser}
| Password valid until infinity |
Run Code Online (Sandbox Code Playgroud)
但我得到这个:
mediapop_staging=> REASSIGN OWNED BY pronto TO mediapop_staging;
ERROR: permission denied to reassign objects
Run Code Online (Sandbox Code Playgroud)
为什么?我该如何解决?
看起来我们的数据库服务器正在以越来越快的速度进行垃圾收集,这看起来很正常,因为它在增长。什么时候切换到更大的实例有什么好的经验法则,我不是 DBA,也没有参考框架。现在每当只剩下 100mb 时,它似乎每 2-3 天进行一次垃圾收集。
服务器本身有 1.7GB 的 RAM。