PostgreSQL
52.37. pg_policy
The catalog pg_policy
stores row-level security policies for tables. A policy includes the kind of command that it applies to (possibly all commands), the roles that it applies to, the expression to be added as a security-barrier qualification to queries that include the table, and the expression to be added as a WITH CHECK
option for queries that attempt to add new records to the table.
Table 52.37. pg_policy
Columns
Column Type Description |
---|
Row identifier |
The name of the policy |
The table to which the policy applies |
Is the policy permissive or restrictive? |
The roles to which the policy is applied; zero means |
The expression tree to be added to the security barrier qualifications for queries that use the table |
The expression tree to be added to the WITH CHECK qualifications for queries that attempt to add rows to the table |
+
Submit correction
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.
Copyright © 1996-2023 The PostgreSQL Global Development Group