SYSTEM CATALOGS / SYSTEM VIEWS
pg_policies
Read PG 18 manual ↗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
| Column | Type | Description / reference |
|---|---|---|
schemaname | name | Name of schema containing table policy is on pg_namespace.nspname |
tablename | name | Name of table policy is on pg_class.relname |
policyname | name | Name of policy pg_policy.polname |
permissive | text | Is the policy permissive or restrictive? |
roles | name[] | The roles to which this policy applies |
cmd | text | The command type to which the policy is applied |
qual | text | The expression added to the security barrier qualifications for queries that this policy applies to |
with_check | text | The expression added to the WITH CHECK qualifications for queries that attempt to add rows to this table |
Column history across versions
Version history 3
- PG 12 → 13changed
- PG 9.6 → 10changed
- PG 9.4 → 9.5added
Definition snapshot: english-manuals:ca759799d66e5b46d2ec7f51845… · English manual source