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

时间:2024-11-13 14:46:10

查看数据库用户

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

1
2
3
4
5
6
7
8
SELECT * FROM gs_user;
 usename | usesysid | usecreatedb | usesuper | usecatupd | userepl |  passwd  | valbegin | valuntil |   respool    | parent | spacelimit | useconfig | nodegroup | tempspacelimit | spillsp
acelimit | usemonitoradmin | useoperatoradmin | usepolicyadmin 
---------+----------+-------------+----------+-----------+---------+----------+----------+----------+--------------+--------+------------+-----------+-----------+----------------+--------
---------+-----------------+------------------+----------------
 omm     |       10 | t           | t        | t         | t       | ******** |          |          | default_pool |      0 |            |           |           |                |        
         | t               | t                | t
(1 row)
support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0033.html