row_security_policy_hook_permissive
hooks to allow extensions to add their own security policies row_security_policy_hook_permissive can be used to add policies which are combined with the other permissive policies, using OR. row_security_policy_hook_restrictive can be used to add policies which are enforced, regardless of other policies (they are combined using AND).
Reading PG 18·Select a recorded version
- Interface type
- row_security_policy_hook_type
- Header
- src/include/rewrite/rowsecurity.h
- Subsystem
- Permissions and object access
- Initial value
- NULL (no hook installed)
- signature
- typedef List *(*row_security_policy_hook_type) (CmdType cmdtype, Relation relation); extern PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_permissive;
Definition PG 18
hooks to allow extensions to add their own security policies row_security_policy_hook_permissive can be used to add policies which are combined with the other permissive policies, using OR. row_security_policy_hook_restrictive can be used to add policies which are enforced, regardless of other policies (they are combined using AND).
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · 753057e340da8f22e57c9a409ea7a235fd6a46bd
Text language: en · 753057e340da8f22e57c9a409ea7a235fd6a46bd