#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
查看数据库用户
通过PG_USER可以查看数据库中所有用户的列表,还可以查看用户ID(USESYSID)和用户权限。
SELECT * FROM pg_user;
usename | usesysid | usecreatedb | usesuper | usecatupd | userepl | passwd | valbegin | valuntil | respool
| parent | spacelimit | useconfig
-----------------------------------+----------+-------------+----------+-----------+---------+----------+----------+----------+----------
----+--------+------------+-----------
dfc22b86afbd9a745668c3ecd0f15ec18 | 17107 | f | f | f | f | ******** | | | default_p
ool | 0 | |
guest | 17103 | f | f | f | f | ******** | | | default_p
ool | 0 | |
omm | 10 | t | t | t | t | ******** | | | default_p
ool | 0 | |
omm | 16404 | f | f | f | f | ******** | | | default_p
ool | 0 | |
lily | 16482 | f | f | f | f | ******** | | | default_p
ool | 0 | |
jack | 16478 | f | f | f | f | ******** | | | default_p
ool | 0 | |
(6 rows)
#openGauss #入门 #安装 #数据库 #开源