PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <sys/stat.h>
#include "fmgr.h"
#include "miscadmin.h"
#include "port/pg_bitutils.h"
#include "storage/fd.h"
#include "storage/lwlock.h"
#include "storage/shmem.h"
#include "utils/hsearch.h"
#include "utils/injection_point.h"
#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
Size | InjectionPointShmemSize (void) |
void | InjectionPointShmemInit (void) |
void | InjectionPointAttach (const char *name, const char *library, const char *function) |
void | InjectionPointDetach (const char *name) |
void | InjectionPointRun (const char *name) |
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().