mirror of
https://github.com/postgres/postgres.git
synced 2026-03-07 07:40:31 -05:00
Reported-by: Michael Paquier Discussion: https://postgr.es/m/ZZKTDPxBBMt3C0J9@paquier.xyz Backpatch-through: 12 |
||
|---|---|---|
| .. | ||
| expected | ||
| sql | ||
| .gitignore | ||
| Makefile | ||
| meson.build | ||
| README | ||
| test_rls_hooks.c | ||
| test_rls_hooks.h | ||
test_rls_hooks is an example of how to use the hooks provided for RLS to
define additional policies to be used.
Functions
=========
test_rls_hooks_permissive(CmdType cmdtype, Relation relation)
RETURNS List*
Returns a list of policies which should be added to any existing
policies on the relation, combined with OR.
test_rls_hooks_restrictive(CmdType cmdtype, Relation relation)
RETURNS List*
Returns a list of policies which should be added to any existing
policies on the relation, combined with AND.