select open change scope Open full search

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

SYSTEM CATALOGS / SYSTEM VIEWS

The view pg_shadow exists for backwards compatibility: it emulates a catalog that existed in PostgreSQL before version 8.1.

Kind
System views
Columns in this snapshot
9
Definition source
English manual

Columns 9

ColumnTypeDescription / reference
usenamenameUser name
pg_authid.rolname
usesysidoidID of this user
pg_authid.oid
usecreatedbboolUser can create databases
usesuperboolUser is a superuser
usereplboolUser can initiate streaming replication and put the system in and out of backup mode.
usebypassrlsboolUser bypasses every row-level security policy, see Section 5.9 for more information.
passwdtextEncrypted password; null if none. See pg_authid for details of how encrypted passwords are stored.
valuntiltimestamptzPassword expiry time (only used for password authentication)
useconfigtext[]Session defaults for run-time configuration variables
Column history across versions
Version history 7
  1. PG 18 → 19changed
  2. PG 16 → 17changed
  3. PG 13 → 14changed
  4. PG 12 → 13changed
  5. PG 11 → 12changed
  6. PG 9.4 → 9.5changed
  7. PG 9.1 → 9.2changed

Definition snapshot: english-manuals:1de04f91c90f38e8c3e91df3d28… · English manual source