52 elog(
LOG,
"test_shmem_request callback called");
62 elog(
LOG,
"init callback called");
64 elog(
ERROR,
"shmem area already initialized");
68 elog(
ERROR,
"attach or initialize already called in this process");
75 elog(
LOG,
"test_shmem_attach callback called");
77 elog(
ERROR,
"shmem area not yet initialized");
81 elog(
ERROR,
"attach or initialize already called in this process");
88 elog(
LOG,
"test_shmem module's _PG_init called");
97 elog(
ERROR,
"shmem area not attached or initialized in this process");
99 elog(
ERROR,
"shmem area not yet initialized");
#define PG_FUNCTION_INFO_V1(funcname)
#define PG_RETURN_INT32(x)
void RegisterShmemCallbacks(const ShmemCallbacks *callbacks)
#define ShmemRequestStruct(...)
#define SHMEM_CALLBACKS_ALLOW_AFTER_STARTUP
static TestShmemData * TestShmem
static const ShmemCallbacks TestShmemCallbacks
static bool attached_or_initialized
static void test_shmem_attach(void *arg)
Datum get_test_shmem_attach_count(PG_FUNCTION_ARGS)
static void test_shmem_request(void *arg)
static void test_shmem_init(void *arg)