2025年9月25日: PostgreSQL 18 釋出!
支援的版本: 當前 (18) / 17 / 16 / 15 / 14 / 13
開發版本: devel
不支援的版本: 12 / 11 / 10 / 9.6 / 9.5

53.15. pg_policies #

檢視 pg_policies 提供對資料庫中每個行級安全策略的有用資訊的訪問。

表 53.15. pg_policies

列 型別

描述

schemaname name (引用 pg_namespace.nspname)

策略所在的表的模式名稱

tablename name (引用 pg_class.relname)

策略所在的表名稱

policyname name (引用 pg_policy.polname)

策略名稱

permissive text

策略是允許的還是限制性的?

roles name[]

此策略適用的角色

cmd text

策略適用的命令型別

qual text

新增到此策略適用的查詢的安全屏障限定條件中的表示式

with_check text

新增到嘗試向此表新增行的查詢的 WITH CHECK 限定條件中的表示式


提交更正

如果您在文件中發現任何不正確、與您使用的特定功能的經驗不符或需要進一步澄清的內容,請使用 此表格 報告文件問題。