PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | RowSecurityPolicy |
struct | RowSecurityDesc |
Typedefs | |
typedef struct RowSecurityPolicy | RowSecurityPolicy |
typedef struct RowSecurityDesc | RowSecurityDesc |
typedef List *(* | row_security_policy_hook_type) (CmdType cmdtype, Relation relation) |
Functions | |
void | get_row_security_policies (Query *root, RangeTblEntry *rte, int rt_index, List **securityQuals, List **withCheckOptions, bool *hasRowSecurity, bool *hasSubLinks) |
Variables | |
PGDLLIMPORT row_security_policy_hook_type | row_security_policy_hook_permissive |
PGDLLIMPORT row_security_policy_hook_type | row_security_policy_hook_restrictive |
Definition at line 37 of file rowsecurity.h.
typedef struct RowSecurityDesc RowSecurityDesc |
typedef struct RowSecurityPolicy RowSecurityPolicy |
void get_row_security_policies | ( | Query * | root, |
RangeTblEntry * | rte, | ||
int | rt_index, | ||
List ** | securityQuals, | ||
List ** | withCheckOptions, | ||
bool * | hasRowSecurity, | ||
bool * | hasSubLinks | ||
) |
Definition at line 108 of file rowsecurity.c.
References ACL_SELECT, ACL_UPDATE, OnConflictExpr::action, add_security_quals(), add_with_check_options(), Assert, check_enable_rls(), RangeTblEntry::checkAsUser, CMD_DELETE, CMD_INSERT, CMD_SELECT, CMD_UPDATE, Query::commandType, get_policies_for_relation(), GetUserId(), NIL, NoLock, Query::onConflict, ONCONFLICT_UPDATE, RangeTblEntry::relid, RangeTblEntry::relkind, RangeTblEntry::requiredPerms, Query::resultRelation, RLS_NONE, RLS_NONE_ENV, setRuleCheckAsUser(), table_close(), table_open(), WCO_RLS_CONFLICT_CHECK, WCO_RLS_INSERT_CHECK, and WCO_RLS_UPDATE_CHECK.
Referenced by fireRIRrules().
PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_permissive |
Definition at line 96 of file rowsecurity.c.
Referenced by _PG_fini(), _PG_init(), and get_policies_for_relation().
PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_restrictive |
Definition at line 97 of file rowsecurity.c.
Referenced by _PG_fini(), _PG_init(), and get_policies_for_relation().