postgresql - 默认角色无法登录 Postgres 10
问题描述
我正在配置一个 postgres 数据库,我看到默认角色 pg_monitor、pg_read_all_settings、pg_read_all_stats、pg_signal_backend 和 pg_stat_scan_tables 都无法登录。我不确定第一步会是什么。这是 \l 和 \du 的输出:
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-------------------------
confdb02 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres +
| | | | | confluence=CTc/postgres
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(4 rows)
postgres=# \du
List of roles
Role name | Attributes | Member of
----------------------+------------------------------------------------+--------------------------------------------------------------
confluence | Superuser, Create role, Create DB | {}
pg_monitor | Cannot login | {pg_read_all_settings,pg_read_all_stats,pg_stat_scan_tables}
pg_read_all_settings | Cannot login | {}
pg_read_all_stats | Cannot login | {}
pg_signal_backend | Cannot login | {}
pg_stat_scan_tables | Cannot login | {}
postgres | Superuser, Create role, Create DB, Replication | {}
Thanks!
解决方案
推荐阅读
- reactjs - 在 Semantic UI React 中设置 2 个枚举之间的网格列宽度
- vba - 将公式复制到范围
- ruby-on-rails - Rails 模型验证 - 仅创建一条具有特定值的记录
- java - Firestore OnCompleteListener 中的代码在使用 Debugger 但无法正常工作时运行
- python - 我可以根据对象的变换值对对象进行分组吗?
- python - Custom Django Login
- python - 如何按类标签拆分网络爬虫的结果?
- javascript - 在实际链接之前读取 URL
- css - 如何摆脱或覆盖 vuetify 的 v-textarea 底部边框?
- python - 如何使用 re(或更好的模块?)在 Python 中清理来自 csv 文件的输入