From 5e45211a64149b3c659b90ff2de6fa982a5a93ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:17:33 +0200 Subject: Adding upstream version 15.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/catalog-pg-policy.html | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 doc/src/sgml/html/catalog-pg-policy.html (limited to 'doc/src/sgml/html/catalog-pg-policy.html') diff --git a/doc/src/sgml/html/catalog-pg-policy.html b/doc/src/sgml/html/catalog-pg-policy.html new file mode 100644 index 0000000..60dd14f --- /dev/null +++ b/doc/src/sgml/html/catalog-pg-policy.html @@ -0,0 +1,68 @@ + +53.38. pg_policy

53.38. 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 53.38. pg_policy Columns

+ Column Type +

+

+ Description +

+ oid oid +

+

+ Row identifier +

+ polname name +

+

+ The name of the policy +

+ polrelid oid + (references pg_class.oid) +

+

+ The table to which the policy applies +

+ polcmd char +

+

+ The command type to which the policy is applied: + r for SELECT, + a for INSERT, + w for UPDATE, + d for DELETE, + or * for all +

+ polpermissive bool +

+

+ Is the policy permissive or restrictive? +

+ polroles oid[] + (references pg_authid.oid) +

+

+ The roles to which the policy is applied; + zero means PUBLIC + (and normally appears alone in the array) +

+ polqual pg_node_tree +

+

+ The expression tree to be added to the security barrier qualifications for queries that use the table +

+ polwithcheck pg_node_tree +

+

+ The expression tree to be added to the WITH CHECK qualifications for queries that attempt to add rows to the table +


Note

+ Policies stored in pg_policy are applied only when + pg_class.relrowsecurity is set for + their table. +

\ No newline at end of file -- cgit v1.2.3