51.75. pg_policies
视图pg_policies
提供对有关数据库中每个行级安全策略的有用信息的访问。
表 51.76. pg_policies
列
Name | Type | References | Description |
---|---|---|---|
schemaname | name | pg_namespace.nspname | 包含表策略的模式名称已启用 |
tablename | name | pg_class.relname | 表格 Policy 名称已启用 |
policyname | name | pg_policy.polname | 保单名称 |
polpermissive | text | Policy 是宽松的还是限制性的? | |
roles | name[] | 本 Policy 适用的角色 | |
cmd | text | 应用策略的命令类型 | |
qual | text | 此策略添加到安全屏障限定条件中的查询表达式 | |
with_check | text | 该表达式添加到 WITH CHECK 限定条件中,用于尝试向该表中添加行的查询 |