PostgreSQL Source Code git master
|
Go to the source code of this file.
Data Structures | |
struct | ObjectAccessPostCreate |
struct | ObjectAccessDrop |
struct | ObjectAccessPostAlter |
struct | ObjectAccessNamespaceSearch |
Macros | |
#define | InvokeObjectPostCreateHook(classId, objectId, subId) InvokeObjectPostCreateHookArg((classId),(objectId),(subId),false) |
#define | InvokeObjectPostCreateHookArg(classId, objectId, subId, is_internal) |
#define | InvokeObjectDropHook(classId, objectId, subId) InvokeObjectDropHookArg((classId),(objectId),(subId),0) |
#define | InvokeObjectDropHookArg(classId, objectId, subId, dropflags) |
#define | InvokeObjectTruncateHook(objectId) |
#define | InvokeObjectPostAlterHook(classId, objectId, subId) |
#define | InvokeObjectPostAlterHookArg(classId, objectId, subId, auxiliaryId, is_internal) |
#define | InvokeNamespaceSearchHook(objectId, ereport_on_violation) |
#define | InvokeFunctionExecuteHook(objectId) |
#define | InvokeObjectPostCreateHookStr(classId, objectName, subId) InvokeObjectPostCreateHookArgStr((classId),(objectName),(subId),false) |
#define | InvokeObjectPostCreateHookArgStr(classId, objectName, subId, is_internal) |
#define | InvokeObjectDropHookStr(classId, objectName, subId) InvokeObjectDropHookArgStr((classId),(objectName),(subId),0) |
#define | InvokeObjectDropHookArgStr(classId, objectName, subId, dropflags) |
#define | InvokeObjectTruncateHookStr(objectName) |
#define | InvokeObjectPostAlterHookStr(classId, objectName, subId) |
#define | InvokeObjectPostAlterHookArgStr(classId, objectName, subId, auxiliaryId, is_internal) |
#define | InvokeNamespaceSearchHookStr(objectName, ereport_on_violation) |
#define | InvokeFunctionExecuteHookStr(objectName) |
Typedefs | |
typedef enum ObjectAccessType | ObjectAccessType |
typedef void(* | object_access_hook_type) (ObjectAccessType access, Oid classId, Oid objectId, int subId, void *arg) |
typedef void(* | object_access_hook_type_str) (ObjectAccessType access, Oid classId, const char *objectStr, int subId, void *arg) |
Enumerations | |
enum | ObjectAccessType { OAT_POST_CREATE , OAT_DROP , OAT_POST_ALTER , OAT_NAMESPACE_SEARCH , OAT_FUNCTION_EXECUTE , OAT_TRUNCATE } |
Functions | |
void | RunObjectPostCreateHook (Oid classId, Oid objectId, int subId, bool is_internal) |
void | RunObjectDropHook (Oid classId, Oid objectId, int subId, int dropflags) |
void | RunObjectTruncateHook (Oid objectId) |
void | RunObjectPostAlterHook (Oid classId, Oid objectId, int subId, Oid auxiliaryId, bool is_internal) |
bool | RunNamespaceSearchHook (Oid objectId, bool ereport_on_violation) |
void | RunFunctionExecuteHook (Oid objectId) |
void | RunObjectPostCreateHookStr (Oid classId, const char *objectName, int subId, bool is_internal) |
void | RunObjectDropHookStr (Oid classId, const char *objectName, int subId, int dropflags) |
void | RunObjectTruncateHookStr (const char *objectName) |
void | RunObjectPostAlterHookStr (Oid classId, const char *objectName, int subId, Oid auxiliaryId, bool is_internal) |
bool | RunNamespaceSearchHookStr (const char *objectName, bool ereport_on_violation) |
void | RunFunctionExecuteHookStr (const char *objectName) |
Variables | |
PGDLLIMPORT object_access_hook_type | object_access_hook |
PGDLLIMPORT object_access_hook_type_str | object_access_hook_str |
#define InvokeFunctionExecuteHook | ( | objectId | ) |
Definition at line 213 of file objectaccess.h.
#define InvokeFunctionExecuteHookStr | ( | objectName | ) |
Definition at line 260 of file objectaccess.h.
#define InvokeNamespaceSearchHook | ( | objectId, | |
ereport_on_violation | |||
) |
Definition at line 208 of file objectaccess.h.
#define InvokeNamespaceSearchHookStr | ( | objectName, | |
ereport_on_violation | |||
) |
Definition at line 255 of file objectaccess.h.
#define InvokeObjectDropHook | ( | classId, | |
objectId, | |||
subId | |||
) | InvokeObjectDropHookArg((classId),(objectId),(subId),0) |
Definition at line 182 of file objectaccess.h.
#define InvokeObjectDropHookArg | ( | classId, | |
objectId, | |||
subId, | |||
dropflags | |||
) |
Definition at line 184 of file objectaccess.h.
#define InvokeObjectDropHookArgStr | ( | classId, | |
objectName, | |||
subId, | |||
dropflags | |||
) |
Definition at line 231 of file objectaccess.h.
#define InvokeObjectDropHookStr | ( | classId, | |
objectName, | |||
subId | |||
) | InvokeObjectDropHookArgStr((classId),(objectName),(subId),0) |
Definition at line 229 of file objectaccess.h.
#define InvokeObjectPostAlterHook | ( | classId, | |
objectId, | |||
subId | |||
) |
Definition at line 197 of file objectaccess.h.
#define InvokeObjectPostAlterHookArg | ( | classId, | |
objectId, | |||
subId, | |||
auxiliaryId, | |||
is_internal | |||
) |
Definition at line 200 of file objectaccess.h.
#define InvokeObjectPostAlterHookArgStr | ( | classId, | |
objectName, | |||
subId, | |||
auxiliaryId, | |||
is_internal | |||
) |
Definition at line 247 of file objectaccess.h.
#define InvokeObjectPostAlterHookStr | ( | classId, | |
objectName, | |||
subId | |||
) |
Definition at line 244 of file objectaccess.h.
#define InvokeObjectPostCreateHook | ( | classId, | |
objectId, | |||
subId | |||
) | InvokeObjectPostCreateHookArg((classId),(objectId),(subId),false) |
Definition at line 173 of file objectaccess.h.
#define InvokeObjectPostCreateHookArg | ( | classId, | |
objectId, | |||
subId, | |||
is_internal | |||
) |
Definition at line 175 of file objectaccess.h.
#define InvokeObjectPostCreateHookArgStr | ( | classId, | |
objectName, | |||
subId, | |||
is_internal | |||
) |
Definition at line 222 of file objectaccess.h.
#define InvokeObjectPostCreateHookStr | ( | classId, | |
objectName, | |||
subId | |||
) | InvokeObjectPostCreateHookArgStr((classId),(objectName),(subId),false) |
Definition at line 220 of file objectaccess.h.
#define InvokeObjectTruncateHook | ( | objectId | ) |
Definition at line 191 of file objectaccess.h.
#define InvokeObjectTruncateHookStr | ( | objectName | ) |
Definition at line 238 of file objectaccess.h.
typedef void(* object_access_hook_type) (ObjectAccessType access, Oid classId, Oid objectId, int subId, void *arg) |
Definition at line 127 of file objectaccess.h.
typedef void(* object_access_hook_type_str) (ObjectAccessType access, Oid classId, const char *objectStr, int subId, void *arg) |
Definition at line 133 of file objectaccess.h.
typedef enum ObjectAccessType ObjectAccessType |
enum ObjectAccessType |
Enumerator | |
---|---|
OAT_POST_CREATE | |
OAT_DROP | |
OAT_POST_ALTER | |
OAT_NAMESPACE_SEARCH | |
OAT_FUNCTION_EXECUTE | |
OAT_TRUNCATE |
Definition at line 48 of file objectaccess.h.
void RunFunctionExecuteHook | ( | Oid | objectId | ) |
Definition at line 139 of file objectaccess.c.
References Assert, OAT_FUNCTION_EXECUTE, and object_access_hook.
void RunFunctionExecuteHookStr | ( | const char * | objectName | ) |
Definition at line 265 of file objectaccess.c.
References Assert, OAT_FUNCTION_EXECUTE, and object_access_hook_str.
bool RunNamespaceSearchHook | ( | Oid | objectId, |
bool | ereport_on_violation | ||
) |
Definition at line 115 of file objectaccess.c.
References Assert, ObjectAccessNamespaceSearch::ereport_on_violation, OAT_NAMESPACE_SEARCH, object_access_hook, and ObjectAccessNamespaceSearch::result.
bool RunNamespaceSearchHookStr | ( | const char * | objectName, |
bool | ereport_on_violation | ||
) |
Definition at line 241 of file objectaccess.c.
References Assert, ObjectAccessNamespaceSearch::ereport_on_violation, OAT_NAMESPACE_SEARCH, object_access_hook_str, and ObjectAccessNamespaceSearch::result.
Definition at line 54 of file objectaccess.c.
References Assert, ObjectAccessDrop::dropflags, OAT_DROP, and object_access_hook.
void RunObjectDropHookStr | ( | Oid | classId, |
const char * | objectName, | ||
int | subId, | ||
int | dropflags | ||
) |
Definition at line 180 of file objectaccess.c.
References Assert, ObjectAccessDrop::dropflags, OAT_DROP, and object_access_hook_str.
void RunObjectPostAlterHook | ( | Oid | classId, |
Oid | objectId, | ||
int | subId, | ||
Oid | auxiliaryId, | ||
bool | is_internal | ||
) |
Definition at line 92 of file objectaccess.c.
References Assert, ObjectAccessPostAlter::auxiliary_id, ObjectAccessPostAlter::is_internal, OAT_POST_ALTER, and object_access_hook.
void RunObjectPostAlterHookStr | ( | Oid | classId, |
const char * | objectName, | ||
int | subId, | ||
Oid | auxiliaryId, | ||
bool | is_internal | ||
) |
Definition at line 218 of file objectaccess.c.
References Assert, ObjectAccessPostAlter::auxiliary_id, ObjectAccessPostAlter::is_internal, OAT_POST_ALTER, and object_access_hook_str.
Definition at line 32 of file objectaccess.c.
References Assert, ObjectAccessPostCreate::is_internal, OAT_POST_CREATE, and object_access_hook.
void RunObjectPostCreateHookStr | ( | Oid | classId, |
const char * | objectName, | ||
int | subId, | ||
bool | is_internal | ||
) |
Definition at line 158 of file objectaccess.c.
References Assert, ObjectAccessPostCreate::is_internal, OAT_POST_CREATE, and object_access_hook_str.
void RunObjectTruncateHook | ( | Oid | objectId | ) |
Definition at line 76 of file objectaccess.c.
References Assert, OAT_TRUNCATE, and object_access_hook.
void RunObjectTruncateHookStr | ( | const char * | objectName | ) |
Definition at line 202 of file objectaccess.c.
References Assert, OAT_TRUNCATE, and object_access_hook_str.
|
extern |
Definition at line 22 of file objectaccess.c.
Referenced by _PG_init(), cachedNamespacePath(), RunFunctionExecuteHook(), RunNamespaceSearchHook(), RunObjectDropHook(), RunObjectPostAlterHook(), RunObjectPostCreateHook(), and RunObjectTruncateHook().
|
extern |
Definition at line 23 of file objectaccess.c.
Referenced by _PG_init(), RunFunctionExecuteHookStr(), RunNamespaceSearchHookStr(), RunObjectDropHookStr(), RunObjectPostAlterHookStr(), RunObjectPostCreateHookStr(), and RunObjectTruncateHookStr().