DocsSql ReferenceInternalsCatalogsView Pg User

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.

pg_user Columns

Column TypeDescription
usename nameUser name
usesysid oidID of this user
usecreatedb boolUser can create databases
usesuper boolUser is a superuser
userepl boolUser can initiate streaming replication and put the system in and out of backup mode.
usebypassrls boolUser bypasses every row-level security policy.
passwd textNot the password (always reads as ********)
valuntil timestamptzPassword expiry time (only used for password authentication)
useconfig text[]Session defaults for run-time configuration variables