PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
test_rls_hooks.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------
2  *
3  * test_rls_hooks.h
4  * Definitions for RLS hooks
5  *
6  * Copyright (c) 2015-2017, PostgreSQL Global Development Group
7  *
8  * IDENTIFICATION
9  * src/test/modules/test_rls_hooks/test_rls_hooks.h
10  *
11  * -------------------------------------------------------------------------
12  */
13 
14 #ifndef TEST_RLS_HOOKS_H
15 #define TEST_RLS_HOOKS_H
16 
17 #include <rewrite/rowsecurity.h>
18 
19 /* Return set of permissive hooks based on CmdType and Relation */
20 extern List *test_rls_hooks_permissive(CmdType cmdtype, Relation relation);
21 
22 /* Return set of restrictive hooks based on CmdType and Relation */
23 extern List *test_rls_hooks_restrictive(CmdType cmdtype, Relation relation);
24 
25 #endif
List * test_rls_hooks_permissive(CmdType cmdtype, Relation relation)
List * test_rls_hooks_restrictive(CmdType cmdtype, Relation relation)
Definition: pg_list.h:45
CmdType
Definition: nodes.h:642