↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

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

ColumnTypeNullabilityDescription
usenamenameNullableUser name
usesysidoidNullableID of this user
usecreatedbboolNullableUser can create databases
usesuperboolNullableUser is a superuser
usereplboolNullableUser can initiate streaming replication and put the system in and out of backup mode.
usebypassrlsboolNullableUser bypasses every row-level security policy, see Section 5.9 for more information.
passwdtextNullableNot the password (always reads as ********)
valuntiltimestamptzNullablePassword expiry time (only used for password authentication)
useconfigtext[]NullableSession 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