PostgreSQL Source Code git master
|
#include "postgres.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_class.h"
#include "catalog/pg_namespace.h"
#include "catalog/pg_proc.h"
Go to the source code of this file.
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 | |
object_access_hook_type | object_access_hook = NULL |
object_access_hook_type_str | object_access_hook_str = NULL |
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.
object_access_hook_type object_access_hook = NULL |
Definition at line 22 of file objectaccess.c.
Referenced by _PG_init(), cachedNamespacePath(), RunFunctionExecuteHook(), RunNamespaceSearchHook(), RunObjectDropHook(), RunObjectPostAlterHook(), RunObjectPostCreateHook(), and RunObjectTruncateHook().
object_access_hook_type_str object_access_hook_str = NULL |
Definition at line 23 of file objectaccess.c.
Referenced by _PG_init(), RunFunctionExecuteHookStr(), RunNamespaceSearchHookStr(), RunObjectDropHookStr(), RunObjectPostAlterHookStr(), RunObjectPostCreateHookStr(), and RunObjectTruncateHookStr().