Redrock Postgres 搜索 英文
版本: 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17 / 18

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 限定条件中的表达式