|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "fmgr.h"#include "miscadmin.h"#include "storage/lwlock.h"#include "utils/builtins.h"#include "utils/wait_classes.h"
Go to the source code of this file.
Variables | |
| PG_MODULE_MAGIC | |
| static shmem_request_hook_type | prev_shmem_request_hook |
Definition at line 28 of file test_lwlock_tranches.c.
References prev_shmem_request_hook, shmem_request_hook, and test_lwlock_tranches_shmem_request().
| PG_FUNCTION_INFO_V1 | ( | test_lwlock_get_lwlock_identifier | ) |
| PG_FUNCTION_INFO_V1 | ( | test_lwlock_initialize | ) |
| PG_FUNCTION_INFO_V1 | ( | test_lwlock_tranche_create | ) |
| PG_FUNCTION_INFO_V1 | ( | test_lwlock_tranche_lookup | ) |
| PG_FUNCTION_INFO_V1 | ( | test_startup_lwlocks | ) |
| Datum test_lwlock_get_lwlock_identifier | ( | PG_FUNCTION_ARGS | ) |
Definition at line 115 of file test_lwlock_tranches.c.
References cstring_to_text(), fb(), GetLWLockIdentifier(), PG_GETARG_INT32, PG_RETURN_NULL, PG_RETURN_TEXT_P, and PG_WAIT_LWLOCK.
| Datum test_lwlock_initialize | ( | PG_FUNCTION_ARGS | ) |
Definition at line 133 of file test_lwlock_tranches.c.
References LWLockInitialize(), PG_GETARG_INT32, and PG_RETURN_VOID.
| Datum test_lwlock_tranche_create | ( | PG_FUNCTION_ARGS | ) |
Definition at line 89 of file test_lwlock_tranches.c.
References fb(), LWLockNewTrancheId(), PG_ARGISNULL, PG_GETARG_DATUM, PG_RETURN_INT32, and TextDatumGetCString.
| Datum test_lwlock_tranche_lookup | ( | PG_FUNCTION_ARGS | ) |
Definition at line 104 of file test_lwlock_tranches.c.
References fb(), GetNamedLWLockTranche(), PG_GETARG_DATUM, PG_RETURN_VOID, and TextDatumGetCString.
Definition at line 35 of file test_lwlock_tranches.c.
References prev_shmem_request_hook, and RequestNamedLWLockTranche().
Referenced by _PG_init().
| Datum test_startup_lwlocks | ( | PG_FUNCTION_ARGS | ) |
Definition at line 53 of file test_lwlock_tranches.c.
References elog, ERROR, fb(), GetLWLockIdentifier(), GetNamedLWLockTranche(), i, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), LWTRANCHE_FIRST_USER_DEFINED, PG_RETURN_VOID, and PG_WAIT_LWLOCK.
| PG_MODULE_MAGIC |
Definition at line 22 of file test_lwlock_tranches.c.
|
static |
Definition at line 24 of file test_lwlock_tranches.c.
Referenced by _PG_init(), and test_lwlock_tranches_shmem_request().