]> begriffs open source - ai-pg/blob - full-docs/txt/view-pg-policies.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / view-pg-policies.txt
1
2 53.15. pg_policies #
3
4    The view pg_policies provides access to useful information about each
5    row-level security policy in the database.
6
7    Table 53.15. pg_policies Columns
8
9    Column Type
10
11    Description
12
13    schemaname name (references pg_namespace.nspname)
14
15    Name of schema containing table policy is on
16
17    tablename name (references pg_class.relname)
18
19    Name of table policy is on
20
21    policyname name (references pg_policy.polname)
22
23    Name of policy
24
25    permissive text
26
27    Is the policy permissive or restrictive?
28
29    roles name[]
30
31    The roles to which this policy applies
32
33    cmd text
34
35    The command type to which the policy is applied
36
37    qual text
38
39    The expression added to the security barrier qualifications for queries
40    that this policy applies to
41
42    with_check text
43
44    The expression added to the WITH CHECK qualifications for queries that
45    attempt to add rows to this table