PostgreSQL 中文参考文档
🌐 英文原版 官方 ↗

53.15. pg_policies #

视图 pg_policies 提供对数据库中每个行级安全 策略有用信息的访问。

Table 53.15. \1 字段列说明

Column Type

Description

schemaname name (references pg_namespace.nspname)

策略所针对的表所在的模式的名称

tablename name (references pg_class.relname)

策略所针对的表的名称

policyname name (references pg_policy.polname)

策略的名称

permissive text

该策略是宽容的还是限制性的?

roles name[]

这条策略适用的角色

cmd text

该策略所应用的命令类型

qual text

为该策略适用的查询加入安全屏障限定条件的表达式

with_check text

为尝试向该表添加行的查询加入 WITH CHECK 限定条件的 表达式