云数据库 GAUSSDB-查看系统表:查看数据库用户

时间:2024-11-02 18:48:10

查看数据库用户

通过PG_USER可以查看数据库中所有用户的列表,还可以查看用户ID(USESYSID)和用户权限。

1
SELECT * FROM pg_user; 
1
2
3
4
5
6
 usename | usesysid | usecreatedb | usesuper | usecatupd | userepl |  passwd  | valbegin | valuntil |   respool    | parent | spacelimit | useconfig | nodegroup | tempspacelimit | spillspacelimit 
---------+----------+-------------+----------+-----------+---------+----------+----------+----------+--------------+------
-------+------------+-----------+-----------+----------------+-----------------
 roach   |       10 | t           | t        | t         | t       | ******** |          |          | default_pool |      
0      |            |           |           |                | 
(1 row)
support.huaweicloud.com/distributed-devg-v2-gaussdb/gaussdb_v5r2c10_0019.html