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_roles provides access to information about database roles.

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

Columns 13

ColumnTypeDescription / reference
rolnamenameRole name
rolsuperboolRole has superuser privileges
rolinheritboolRole automatically inherits privileges of roles it is a member of
rolcreateroleboolRole can create more roles
rolcreatedbboolRole can create databases
rolcanloginboolRole can log in. That is, this role can be given as the initial session authorization identifier
rolreplicationboolRole is a replication role. A replication role can initiate replication connections and create and drop replication slots.
rolconnlimitint4For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit.
rolpasswordtextNot the password (always reads as ********)
rolvaliduntiltimestamptzPassword expiry time (only used for password authentication); null if no expiration
rolbypassrlsboolRole bypasses every row-level security policy, see Section 5.9 for more information.
rolconfigtext[]Role-specific defaults for run-time configuration variables
oidoidID of role
pg_authid.oid
Column history across versions
Version history 7
  1. PG 18 → 19changed
  2. PG 16 → 17changed
  3. PG 13 → 14changed
  4. PG 11 → 12changed
  5. PG 9.5 → 9.6changed
  6. PG 9.4 → 9.5changed
  7. PG 9.0 → 9.1changed

Definition snapshot: english-manuals:dc222f0a4f6d24aa511fbecc25b… · English manual source