Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
51.38. pg_policy
Prev UpChapter 51. System CatalogsHome Next

51.38. pg_policy#

The catalogpg_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 aWITH CHECK option for queries that attempt to add new records to the table.

Table 51.38. pg_policy Columns

Column Type

Description

oidoid

Row identifier

polnamename

The name of the policy

polrelidoid (referencespg_class.oid)

The table to which the policy applies

polcmdchar

The command type to which the policy is applied:r forSELECT,a forINSERT,w forUPDATE,d forDELETE, or* for all

polpermissivebool

Is the policy permissive or restrictive?

polrolesoid[] (referencespg_authid.oid)

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

polqualpg_node_tree

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

polwithcheckpg_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 inpg_policy are applied only whenpg_class.relrowsecurity is set for their table.


Prev Up Next
51.37. pg_partitioned_table Home 51.39. pg_proc
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp