PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | INJECTION_POINT(name) ((void) name) |
Typedefs | |
typedef void(* | InjectionPointCallback) (const char *name) |
Functions | |
Size | InjectionPointShmemSize (void) |
void | InjectionPointShmemInit (void) |
void | InjectionPointAttach (const char *name, const char *library, const char *function) |
void | InjectionPointRun (const char *name) |
void | InjectionPointDetach (const char *name) |
Definition at line 20 of file injection_point.h.
typedef void(* InjectionPointCallback) (const char *name) |
Definition at line 26 of file injection_point.h.
void InjectionPointAttach | ( | const char * | name, |
const char * | library, | ||
const char * | function | ||
) |
Definition at line 187 of file injection_point.c.
References elog, ERROR, HASH_ENTER, hash_search(), INJ_NAME_MAXLEN, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), name, and strlcpy().
Referenced by injection_points_attach().
void InjectionPointDetach | ( | const char * | name | ) |
Definition at line 238 of file injection_point.c.
References elog, ERROR, HASH_REMOVE, hash_search(), LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), and name.
Referenced by injection_points_cleanup(), and injection_points_detach().
void InjectionPointRun | ( | const char * | name | ) |
Definition at line 262 of file injection_point.c.
References elog, ERROR, HASH_FIND, hash_search(), load_external_function(), LW_SHARED, LWLockAcquire(), LWLockRelease(), MAXPGPATH, name, pg_file_exists(), pkglib_path, and snprintf.
void InjectionPointShmemInit | ( | void | ) |
Definition at line 167 of file injection_point.c.
References HASHCTL::entrysize, HASH_ELEM, HASH_FIXED_SIZE, HASH_STRINGS, INJ_NAME_MAXLEN, HASHCTL::keysize, and ShmemInitHash().
Referenced by CreateOrAttachShmemStructs().
Size InjectionPointShmemSize | ( | void | ) |
Definition at line 150 of file injection_point.c.
References add_size(), and hash_estimate_size().
Referenced by CalculateShmemSize().