PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/gist.h"
#include "access/gist_private.h"
#include "access/htup.h"
#include "access/relation.h"
#include "catalog/namespace.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "pageinspect.h"
#include "storage/itemptr.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/rel.h"
#include "utils/pg_lsn.h"
#include "utils/varlena.h"
Go to the source code of this file.
Macros | |
#define | ItemPointerGetDatum(X) PointerGetDatum(X) |
#define ItemPointerGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 31 of file gistfuncs.c.
Referenced by gist_page_items(), and gist_page_items_bytea().
Datum gist_page_items | ( | PG_FUNCTION_ARGS | ) |
Definition at line 183 of file gistfuncs.c.
References AccessShareLock, ReturnSetInfo::allowedModes, BoolGetDatum, BuildIndexValueDescription(), CStringGetTextDatum, DatumGetInt16, ReturnSetInfo::econtext, ExprContext::ecxt_per_query_memory, elog, ereport, errcode(), errmsg(), ERROR, FirstOffsetNumber, get_call_result_type(), get_page_from_raw(), GistPageIsDeleted, index_deform_tuple(), INDEX_MAX_KEYS, index_open(), IndexTupleSize, Int32GetDatum, InvalidOffsetNumber, IsA, ItemIdIsDead, ItemIdIsValid, ItemPointerGetDatum, MemoryContextSwitchTo(), NOTICE, PageGetItem, PageGetItemId, PageGetMaxOffsetNumber, PG_GETARG_BYTEA_P, PG_GETARG_OID, relation_close(), RelationGetDescr, ReturnSetInfo::returnMode, ReturnSetInfo::setDesc, ReturnSetInfo::setResult, SFRM_Materialize, SFRM_Materialize_Random, superuser(), IndexTupleData::t_tid, tuplestore_begin_heap(), tuplestore_putvalues(), TYPEFUNC_COMPOSITE, values, and work_mem.
Datum gist_page_items_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file gistfuncs.c.
References ReturnSetInfo::allowedModes, BoolGetDatum, DatumGetInt16, ReturnSetInfo::econtext, ExprContext::ecxt_per_query_memory, elog, ereport, errcode(), errmsg(), ERROR, FirstOffsetNumber, get_call_result_type(), get_page_from_raw(), GistPageIsDeleted, IndexTupleSize, Int32GetDatum, InvalidOffsetNumber, IsA, ItemIdIsDead, ItemIdIsValid, ItemPointerGetDatum, MemoryContextSwitchTo(), NOTICE, PageGetItem, PageGetItemId, PageGetMaxOffsetNumber, palloc(), PG_GETARG_BYTEA_P, PointerGetDatum, ReturnSetInfo::returnMode, SET_VARSIZE, ReturnSetInfo::setDesc, ReturnSetInfo::setResult, SFRM_Materialize, SFRM_Materialize_Random, superuser(), IndexTupleData::t_tid, tuplestore_begin_heap(), tuplestore_putvalues(), TYPEFUNC_COMPOSITE, values, VARDATA, VARHDRSZ, and work_mem.
Datum gist_page_opaque_info | ( | PG_FUNCTION_ARGS | ) |
Definition at line 35 of file gistfuncs.c.
References construct_array(), CStringGetTextDatum, DirectFunctionCall1, elog, ereport, errcode(), errmsg(), ERROR, F_DELETED, F_FOLLOW_RIGHT, F_HAS_GARBAGE, F_LEAF, F_TUPLES_DELETED, GISTPageOpaqueData::flags, get_call_result_type(), get_page_from_raw(), GistPageGetNSN, heap_form_tuple(), HeapTupleGetDatum, Int32GetDatum, Int64GetDatum(), LSNGetDatum, PageGetLSN, PageGetSpecialPointer, PG_GETARG_BYTEA_P, PointerGetDatum, GISTPageOpaqueData::rightlink, superuser(), to_hex32(), TYPEFUNC_COMPOSITE, and values.
PG_FUNCTION_INFO_V1 | ( | gist_page_opaque_info | ) |
PG_FUNCTION_INFO_V1 | ( | gist_page_items | ) |
PG_FUNCTION_INFO_V1 | ( | gist_page_items_bytea | ) |