summaryrefslogtreecommitdiff
path: root/src/test/modules/test_rls_hooks/README
blob: b61dace572fdfe86c6e4da3555c2f5ea2cd6c80d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_hook_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_hook_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.