PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/heapam.h"
#include "access/multixact.h"
#include "access/relscan.h"
#include "access/tableam.h"
#include "access/xact.h"
#include "catalog/namespace.h"
#include "catalog/pg_am_d.h"
#include "catalog/pg_authid.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "storage/bufmgr.h"
#include "storage/procarray.h"
#include "utils/acl.h"
#include "utils/builtins.h"
#include "utils/rel.h"
#include "utils/snapmgr.h"
#include "utils/varlena.h"
Go to the source code of this file.
Macros | |
#define | NCHARS 32 |
#define | Atnum_tid 0 |
#define | Atnum_xmax 1 |
#define | Atnum_ismulti 2 |
#define | Atnum_xids 3 |
#define | Atnum_modes 4 |
#define | Atnum_pids 5 |
Functions | |
PG_FUNCTION_INFO_V1 (pgrowlocks) | |
Datum | pgrowlocks (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
#define Atnum_ismulti 2 |
Definition at line 59 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_modes 4 |
Definition at line 61 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_pids 5 |
Definition at line 62 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_tid 0 |
Definition at line 57 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_xids 3 |
Definition at line 60 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_xmax 1 |
Definition at line 58 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define NCHARS 32 |
Definition at line 55 of file pgrowlocks.c.
Referenced by pgrowlocks().
PG_FUNCTION_INFO_V1 | ( | pgrowlocks | ) |
Datum pgrowlocks | ( | PG_FUNCTION_ARGS | ) |
Definition at line 65 of file pgrowlocks.c.
References AccessShareLock, ACL_SELECT, aclcheck_error(), ACLCHECK_NO_PRIV, ACLCHECK_OK, ReturnSetInfo::allowedModes, Atnum_ismulti, Atnum_modes, Atnum_pids, Atnum_tid, Atnum_xids, Atnum_xmax, BackendXidGetPid(), buf, BUFFER_LOCK_SHARE, BUFFER_LOCK_UNLOCK, BuildTupleFromCStrings(), DirectFunctionCall1, ReturnSetInfo::econtext, ExprContext::ecxt_per_query_memory, elog, ereport, errcode(), errdetail(), errmsg(), ERROR, ForwardScanDirection, get_call_result_type(), get_relkind_objtype(), GetActiveSnapshot(), GetCurrentCommandId(), GetMultiXactIdMembers(), GetUserId(), heap_getnext(), HEAP_KEYS_UPDATED, HEAP_LOCKED_UPGRADED, HEAP_XMAX_IS_EXCL_LOCKED, HEAP_XMAX_IS_KEYSHR_LOCKED, HEAP_XMAX_IS_MULTI, HEAP_XMAX_IS_SHR_LOCKED, HEAP_XMAX_LOCK_ONLY, HeapTupleHeaderGetRawXmax, HeapTupleSatisfiesUpdate(), is_member_of_role(), IsA, LockBuffer(), makeRangeVarFromNameList(), MemoryContextSwitchTo(), MultiXactStatusForKeyShare, MultiXactStatusForNoKeyUpdate, MultiXactStatusForShare, MultiXactStatusForUpdate, MultiXactStatusNoKeyUpdate, MultiXactStatusUpdate, NCHARS, palloc(), pg_class_aclcheck(), PG_GETARG_TEXT_PP, PointerGetDatum, pstrdup(), relation_openrv(), RelationGetRelationName, RelationGetRelid, relname, ReturnSetInfo::returnMode, ReturnSetInfo::setDesc, ReturnSetInfo::setResult, SFRM_Materialize, SFRM_Materialize_Random, snprintf, status(), table_beginscan(), table_close(), table_endscan(), textToQualifiedNameList(), tidout(), TM_BeingModified, TupleDescGetAttInMetadata(), tuplestore_begin_heap(), tuplestore_puttuple(), TYPEFUNC_COMPOSITE, values, and work_mem.
PG_MODULE_MAGIC |
Definition at line 45 of file pgrowlocks.c.