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_policies provides access to useful information about each row-level security policy in the database.

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

Columns 8

ColumnTypeDescription / reference
schemanamenameName of schema containing table policy is on
pg_namespace.nspname
tablenamenameName of table policy is on
pg_class.relname
policynamenameName of policy
pg_policy.polname
permissivetextIs the policy permissive or restrictive?
rolesname[]The roles to which this policy applies
cmdtextThe command type to which the policy is applied
qualtextThe expression added to the security barrier qualifications for queries that this policy applies to
with_checktextThe expression added to the WITH CHECK qualifications for queries that attempt to add rows to this table
Column history across versions
Version history 3
  1. PG 12 → 13changed
  2. PG 9.6 → 10changed
  3. PG 9.4 → 9.5added

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