PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2025, 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 */
20extern List *test_rls_hooks_permissive(CmdType cmdtype, Relation relation);
21
22/* Return set of restrictive hooks based on CmdType and Relation */
23extern List *test_rls_hooks_restrictive(CmdType cmdtype, Relation relation);
24
25#endif
CmdType
Definition: nodes.h:263
Definition: pg_list.h:54
List * test_rls_hooks_restrictive(CmdType cmdtype, Relation relation)
List * test_rls_hooks_permissive(CmdType cmdtype, Relation relation)