pg_user
The view pg_user provides access to information about database users. This is simply a publicly readable view of pg_shadow that blanks out the password field.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- kind
- view
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- usename, usesysid, usecreatedb, usesuper, userepl, usebypassrls, passwd, valuntil, useconfig
- runtime verified
- false
- source
- english-manual
Definition PG 18
The view pg_user provides access to information about database users. This is simply a publicly readable view of pg_shadow that blanks out the password field.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| usename | name | Nullable | User name |
| usesysid | oid | Nullable | ID of this user |
| usecreatedb | bool | Nullable | User can create databases |
| usesuper | bool | Nullable | User is a superuser |
| userepl | bool | Nullable | User can initiate streaming replication and put the system in and out of backup mode. |
| usebypassrls | bool | Nullable | User bypasses every row-level security policy, see Section 5.9 for more information. |
| passwd | text | Nullable | Not the password (always reads as ********) |
| valuntil | timestamptz | Nullable | Password expiry time (only used for password authentication) |
| useconfig | text[] | Nullable | Session defaults for run-time configuration variables |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:16ad3eabe766db69c65a8e0703e2f2fd2478c23104574833a712eb021ae9e21b
Text language: en · catalog-bilingual-repair:16ad3eabe766db69c65a8e0703e2f2fd2478c23104574833a712eb021ae9e21b