PostgreSQL Source Code
git master
|
Go to the source code of this file.
Variables | |
PG_MODULE_MAGIC | |
static const ResourceOwnerDesc | string_desc |
PG_FUNCTION_INFO_V1 | ( | test_resowner_forget_between_phases | ) |
PG_FUNCTION_INFO_V1 | ( | test_resowner_leak | ) |
PG_FUNCTION_INFO_V1 | ( | test_resowner_priorities | ) |
PG_FUNCTION_INFO_V1 | ( | test_resowner_remember_between_phases | ) |
|
static |
Definition at line 42 of file test_resowner_basic.c.
References DatumGetPointer(), psprintf(), and res.
Referenced by test_resowner_priorities().
|
static |
Definition at line 36 of file test_resowner_basic.c.
References DatumGetPointer(), elog, NOTICE, and res.
Referenced by test_resowner_priorities().
Datum test_resowner_forget_between_phases | ( | PG_FUNCTION_ARGS | ) |
Definition at line 186 of file test_resowner_basic.c.
References CStringGetDatum(), CurrentResourceOwner, elog, ERROR, PG_RETURN_VOID, RESOURCE_RELEASE_BEFORE_LOCKS, ResourceOwnerCreate(), ResourceOwnerEnlarge(), ResourceOwnerForget(), ResourceOwnerRelease(), ResourceOwnerRemember(), and string_desc.
Datum test_resowner_leak | ( | PG_FUNCTION_ARGS | ) |
Definition at line 140 of file test_resowner_basic.c.
References CStringGetDatum(), CurrentResourceOwner, PG_RETURN_VOID, RESOURCE_RELEASE_AFTER_LOCKS, RESOURCE_RELEASE_BEFORE_LOCKS, RESOURCE_RELEASE_LOCKS, ResourceOwnerCreate(), ResourceOwnerDelete(), ResourceOwnerEnlarge(), ResourceOwnerRelease(), ResourceOwnerRemember(), and string_desc.
Datum test_resowner_priorities | ( | PG_FUNCTION_ARGS | ) |
Definition at line 50 of file test_resowner_basic.c.
References CStringGetDatum(), CurrentResourceOwner, ResourceOwnerDesc::DebugPrint, elog, ERROR, i, ResourceOwnerDesc::name, NOTICE, palloc(), PG_GETARG_INT32, PG_RETURN_VOID, PrintString(), psprintf(), ResourceOwnerDesc::release_phase, RELEASE_PRIO_FIRST, ResourceOwnerDesc::release_priority, ResourceOwnerDesc::ReleaseResource, ReleaseString(), RESOURCE_RELEASE_AFTER_LOCKS, RESOURCE_RELEASE_BEFORE_LOCKS, RESOURCE_RELEASE_LOCKS, ResourceOwnerCreate(), ResourceOwnerDelete(), ResourceOwnerEnlarge(), ResourceOwnerRelease(), and ResourceOwnerRemember().
Datum test_resowner_remember_between_phases | ( | PG_FUNCTION_ARGS | ) |
Definition at line 163 of file test_resowner_basic.c.
References CStringGetDatum(), CurrentResourceOwner, elog, ERROR, PG_RETURN_VOID, RESOURCE_RELEASE_BEFORE_LOCKS, ResourceOwnerCreate(), ResourceOwnerEnlarge(), ResourceOwnerRelease(), ResourceOwnerRemember(), and string_desc.
PG_MODULE_MAGIC |
Definition at line 18 of file test_resowner_basic.c.
|
static |
Definition at line 27 of file test_resowner_basic.c.
Referenced by test_resowner_forget_between_phases(), test_resowner_leak(), and test_resowner_remember_between_phases().