PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_type.h"
#include "storage/predicate_internals.h"
#include "storage/proc.h"
#include "storage/procarray.h"
#include "utils/array.h"
#include "utils/fmgrprotos.h"
#include "utils/wait_event.h"
Go to the source code of this file.
Macros | |
#define | UINT32_ACCESS_ONCE(var) ((uint32)(*((volatile uint32 *)&(var)))) |
Functions | |
Datum | pg_isolation_test_session_is_blocked (PG_FUNCTION_ARGS) |
Definition at line 23 of file waitfuncs.c.
Datum pg_isolation_test_session_is_blocked | ( | PG_FUNCTION_ARGS | ) |
Definition at line 39 of file waitfuncs.c.
References ARR_DATA_PTR, ARR_DIMS, ARR_ELEMTYPE, ARR_NDIM, array_contains_nulls(), ArrayGetNItems(), Assert, BackendPidGetProc(), DatumGetArrayTypeP, DirectFunctionCall1, elog, ERROR, GetSafeSnapshotBlockingPids(), i, j, pg_blocking_pids(), PG_GETARG_ARRAYTYPE_P, PG_GETARG_INT32, PG_RETURN_BOOL, pgstat_get_wait_event_type(), UINT32_ACCESS_ONCE, and PGPROC::wait_event_info.