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.
Data Structures | |
struct | MyData |
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 66 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_modes 4 |
Definition at line 68 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_pids 5 |
Definition at line 69 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_tid 0 |
Definition at line 64 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_xids 3 |
Definition at line 67 of file pgrowlocks.c.
Referenced by pgrowlocks().
#define Atnum_xmax 1 |
Definition at line 65 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 72 of file pgrowlocks.c.
References AccessShareLock, ACL_SELECT, aclcheck_error(), ACLCHECK_NO_PRIV, ACLCHECK_OK, Atnum_ismulti, Atnum_modes, Atnum_pids, Atnum_tid, Atnum_xids, Atnum_xmax, FuncCallContext::attinmeta, BackendXidGetPid(), buf, BUFFER_LOCK_SHARE, BUFFER_LOCK_UNLOCK, BuildTupleFromCStrings(), DirectFunctionCall1, 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, HeapTupleGetDatum, HeapTupleHeaderGetRawXmax, HeapTupleSatisfiesUpdate(), is_member_of_role(), LockBuffer(), makeRangeVarFromNameList(), MemoryContextSwitchTo(), FuncCallContext::multi_call_memory_ctx, MultiXactStatusForKeyShare, MultiXactStatusForNoKeyUpdate, MultiXactStatusForShare, MultiXactStatusForUpdate, MultiXactStatusNoKeyUpdate, MultiXactStatusUpdate, TupleDescData::natts, NCHARS, MyData::ncolumns, palloc(), pg_class_aclcheck(), PG_GETARG_TEXT_PP, PointerGetDatum, pstrdup(), RelationData::rd_rel, MyData::rel, relation_openrv(), RelationGetRelationName, RelationGetRelid, relname, HeapScanDescData::rs_cbuf, MyData::scan, snprintf, SRF_FIRSTCALL_INIT, SRF_IS_FIRSTCALL, SRF_PERCALL_SETUP, SRF_RETURN_DONE, SRF_RETURN_NEXT, status(), HeapTupleData::t_data, HeapTupleHeaderData::t_infomask, HeapTupleHeaderData::t_infomask2, HeapTupleData::t_self, table_beginscan(), table_close(), table_endscan(), textToQualifiedNameList(), tidout(), TM_BeingModified, TupleDescGetAttInMetadata(), TYPEFUNC_COMPOSITE, FuncCallContext::user_fctx, and values.
PG_MODULE_MAGIC |
Definition at line 45 of file pgrowlocks.c.