postgresql/src/test/modules/test_rls_hooks
Amit Kapila dddf4cdc33 Make the order of the header file includes consistent in non-backend modules.
Similar to commit 7e735035f2, this commit makes the order of header file
inclusion consistent for non-backend modules.

In passing, fix the case where we were using angle brackets (<>) for the
local module includes instead of quotes ("").

Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
2019-10-25 07:41:52 +05:30
..
expected Improve RLS planning by marking individual quals with security levels. 2017-01-18 12:58:20 -05:00
sql Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
.gitignore RLS fixes, new hooks, and new test module 2015-04-22 12:01:06 -04:00
Makefile Add missing NO_INSTALLCHECK in commit_ts and test_rls_hooks 2018-11-29 09:39:07 +09:00
README Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
rls_hooks.conf RLS fixes, new hooks, and new test module 2015-04-22 12:01:06 -04:00
test_rls_hooks.c Make the order of the header file includes consistent in non-backend modules. 2019-10-25 07:41:52 +05:30
test_rls_hooks.control RLS fixes, new hooks, and new test module 2015-04-22 12:01:06 -04:00
test_rls_hooks.h Update copyright for 2019 2019-01-02 12:44:25 -05:00

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.