void * GetNamedDSMSegment(const char *name, size_t size, void(*init_callback)(void *ptr), bool *found)
#define PG_RETURN_UINT32(x)
#define PG_GETARG_UINT32(n)
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
void LWLockRegisterTranche(int tranche_id, const char *tranche_name)
int LWLockNewTrancheId(void)
void LWLockRelease(LWLock *lock)
void LWLockInitialize(LWLock *lock, int tranche_id)
static TestDSMRegistryStruct * tdr_state
Datum set_val_in_shmem(PG_FUNCTION_ARGS)
Datum get_val_in_shmem(PG_FUNCTION_ARGS)
static void tdr_attach_shmem(void)
static void tdr_init_shmem(void *ptr)
PG_FUNCTION_INFO_V1(set_val_in_shmem)
struct TestDSMRegistryStruct TestDSMRegistryStruct