历史版本。 PostgreSQL 9.2 已结束支持。 2017-11-09. 请参阅 当前版本手册.
45.70. pg_user #
视图pg_user提供数据库用户的信息。它本质上是
pg_shadow 的公开可读视图,并隐藏密码字段。
表 45.71. pg_user 列
| Name | Type | Description |
|---|---|---|
usename | name | User name |
usesysid | int4 | User ID (arbitrary number used to reference this user) |
usecreatedb | bool | User can create databases |
usesuper | bool | User is a superuser |
usecatupd | bool | User can update system catalogs. (Even a superuser cannot do this unless this column is true.) |
passwd | text | Not the password (always reads as ********) |
valuntil | abstime | Password expiry time (only used for password authentication) |
useconfig | text[] | Session defaults for run-time configuration variables |
userepl | bool | 用户可开启流复制并将系统设置或者取消备份模式。 |