|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "fmgr.h"#include "storage/dsm_registry.h"#include "storage/lwlock.h"#include "utils/dsa.h"#include "utils/resowner.h"
Go to the source code of this file.
Functions | |
| static void | init_tranche (void *ptr) |
| PG_FUNCTION_INFO_V1 (test_dsa_basic) | |
| Datum | test_dsa_basic (PG_FUNCTION_ARGS) |
| PG_FUNCTION_INFO_V1 (test_dsa_resowners) | |
| Datum | test_dsa_resowners (PG_FUNCTION_ARGS) |
Variables | |
| PG_MODULE_MAGIC | |
|
static |
Definition at line 24 of file test_dsa.c.
References LWLockNewTrancheId().
Referenced by test_dsa_basic(), and test_dsa_resowners().
| PG_FUNCTION_INFO_V1 | ( | test_dsa_basic | ) |
| PG_FUNCTION_INFO_V1 | ( | test_dsa_resowners | ) |
| Datum test_dsa_basic | ( | PG_FUNCTION_ARGS | ) |
Definition at line 34 of file test_dsa.c.
References a, buf, dsa_allocate, dsa_create, dsa_detach(), dsa_free(), dsa_get_address(), elog, ERROR, GetNamedDSMSegment(), i, init_tranche(), PG_RETURN_VOID, and snprintf.
| Datum test_dsa_resowners | ( | PG_FUNCTION_ARGS | ) |
Definition at line 73 of file test_dsa.c.
References a, CurrentResourceOwner, dsa_allocate, dsa_create, dsa_detach(), dsa_free(), dsa_get_address(), GetNamedDSMSegment(), i, init_tranche(), PG_RETURN_VOID, RESOURCE_RELEASE_AFTER_LOCKS, RESOURCE_RELEASE_BEFORE_LOCKS, RESOURCE_RELEASE_LOCKS, ResourceOwnerCreate(), ResourceOwnerDelete(), ResourceOwnerRelease(), and snprintf.
| PG_MODULE_MAGIC |
Definition at line 21 of file test_dsa.c.