Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
49.38. pg_policy
Prev UpChapter 49. System CatalogsHome Next

49.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 49.38. pg_policy Columns

NameTypeReferencesDescription
polnamename The name of the policy
polrelidoidpg_class.oidThe 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
polpermissiveboolean Is the policy permissive or restrictive?
polrolesoid[]pg_authid.oidThe roles to which the policy is applied
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
49.37. pg_pltemplate Home 49.39. pg_proc
epubpdf
Go to Postgres Pro Standard 10
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp