row_security_policy_hook_permissive
宽松行安全策略
向关系补充宽松模式的行安全策略。
当前查看 PostgreSQL 18。
说明
重写器为当前命令与关系收集行安全策略时调用此钩子。返回的策略加入宽松策略集合;宽松策略之间采用 OR 组合,与限制策略一起决定哪些行可见或可写。
- 接口类型
- row_security_policy_hook_type
- 声明头文件
- src/include/rewrite/rowsecurity.h
- 调用阶段
- 权限与对象访问
- 初始值
- NULL(未安装钩子)
接口签名
typedef List *(*row_security_policy_hook_type) (CmdType cmdtype, Relation relation);
extern PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_permissive;调用位置
src/backend/rewrite/rowsecurity.c:644
相关条目
文档与源码
查看来源构建
- 版本
- 18
- 构建
- REL_18_STABLE
- 来源指纹
753057e340da8f22e57c9a409ea7a235fd6a46bd
同类条目
ExecutorCheckPerms_hook执行权限检查object_access_hook对象访问事件object_access_hook_str按名称访问对象row_security_policy_hook_restrictive限制行安全策略
返回扩展钩子 · 此条目的收录范围为 PostgreSQL 10 至 20;起点不一定是实际引入版本。