Documentation / Extension Hooks / Permissions and object access
ExecutorCheckPerms_hook
ExecutorCheckPerms_hook
Hook for plugins to get control in ExecCheckPermissions()
Reading PostgreSQL 18.
Description
Hook for plugins to get control in ExecCheckPermissions()
- Interface type
- ExecutorCheckPerms_hook_type
- Header
- src/include/executor/executor.h
- Subsystem
- Permissions and object access
- Initial value
- NULL (no hook installed)
C interface
typedef bool (*ExecutorCheckPerms_hook_type) (List *rangeTable, List *rtePermInfos, bool ereport_on_violation);
extern PGDLLIMPORT ExecutorCheckPerms_hook_type ExecutorCheckPerms_hook;Core source comments
Hook for plugin to get control in ExecCheckPermissions()
Call sites
src/backend/executor/execMain.c:636
Core call context: src/backend/executor/execMain.c:630–644
get_rel_name(perminfo->relid));
return false;
}
}
if (ExecutorCheckPerms_hook)
result = (*ExecutorCheckPerms_hook) (rangeTable, rteperminfos,
ereport_on_violation);
return result;
}
/*
* ExecCheckOneRelPerms
* Check access permissions for a single relation.
*/Documentation and source
Source build
- Version
- 18
- Build
- REL_18_STABLE
- Source fingerprint
753057e340da8f22e57c9a409ea7a235fd6a46bd
Related entries
object_access_hookobject_access_hookobject_access_hook_strobject_access_hook_strrow_security_policy_hook_permissiverow_security_policy_hook_permissiverow_security_policy_hook_restrictiverow_security_policy_hook_restrictive
Back to Extension Hooks · Recorded in PostgreSQL 10 through 20; the first sample is not necessarily its introduction.