|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/genam.h"#include "access/gist.h"#include "access/htup.h"#include "access/htup_details.h"#include "access/relation.h"#include "catalog/pg_am_d.h"#include "funcapi.h"#include "miscadmin.h"#include "pageinspect.h"#include "storage/itemptr.h"#include "utils/array.h"#include "utils/builtins.h"#include "utils/lsyscache.h"#include "utils/pg_lsn.h"#include "utils/rel.h"#include "utils/ruleutils.h"
Go to the source code of this file.
Macros | |
| #define | IS_GIST(r) ((r)->rd_rel->relam == GIST_AM_OID) |
| #define IS_GIST | ( | r | ) | ((r)->rd_rel->relam == GIST_AM_OID) |
Definition at line 33 of file gistfuncs.c.
| Datum gist_page_items | ( | PG_FUNCTION_ARGS | ) |
Definition at line 196 of file gistfuncs.c.
References AccessShareLock, appendStringInfo(), appendStringInfoChar(), appendStringInfoCharMacro, appendStringInfoString(), BoolGetDatum(), buf, CreateTupleDescTruncatedCopy(), CStringGetTextDatum, elog, ereport, errcode(), errmsg(), ERROR, F_LEAF, fb(), FirstOffsetNumber, getTypeOutputInfo(), GistPageGetOpaque, GistPageIsDeleted, i, index_close(), index_deform_tuple(), INDEX_MAX_KEYS, index_open(), IndexRelationGetNumberOfKeyAttributes, IndexTupleSize(), InitMaterializedSRF(), initStringInfo(), Int32GetDatum(), InvalidOffsetNumber, IS_GIST, ItemIdIsDead, ItemIdIsValid, ItemPointerGetDatum(), TupleDescData::natts, NOTICE, OidOutputFunctionCall(), PageGetItem(), PageGetItemId(), PageGetMaxOffsetNumber(), PageIsNew(), pg_get_indexdef_columns_extended(), PG_GETARG_BYTEA_P, PG_GETARG_OID, PG_RETURN_NULL, RelationGetDescr, RelationGetRelationName, RULE_INDEXDEF_KEYS_ONLY, RULE_INDEXDEF_PRETTY, superuser(), IndexTupleData::t_tid, TupleDescAttr(), tuplestore_putvalues(), UInt16GetDatum(), value, values, and verify_gist_page().
| Datum gist_page_items_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 132 of file gistfuncs.c.
References BoolGetDatum(), elog, ereport, errcode(), errmsg(), ERROR, fb(), FirstOffsetNumber, GistPageIsDeleted, IndexTupleSize(), InitMaterializedSRF(), Int32GetDatum(), InvalidOffsetNumber, ItemIdIsDead, ItemIdIsValid, ItemPointerGetDatum(), NOTICE, PageGetItem(), PageGetItemId(), PageGetMaxOffsetNumber(), PageIsNew(), palloc(), PG_GETARG_BYTEA_P, PG_RETURN_NULL, PointerGetDatum(), SET_VARSIZE(), superuser(), IndexTupleData::t_tid, tuplestore_putvalues(), UInt16GetDatum(), values, VARDATA(), VARHDRSZ, and verify_gist_page().
| Datum gist_page_opaque_info | ( | PG_FUNCTION_ARGS | ) |
Definition at line 73 of file gistfuncs.c.
References construct_array_builtin(), CStringGetTextDatum, DirectFunctionCall1, elog, ereport, errcode(), errmsg(), ERROR, F_DELETED, F_FOLLOW_RIGHT, F_HAS_GARBAGE, F_LEAF, F_TUPLES_DELETED, fb(), get_call_result_type(), GistPageGetNSN, GistPageGetOpaque, heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), Int64GetDatum(), LSNGetDatum(), PageGetLSN(), PageIsNew(), PG_GETARG_BYTEA_P, PG_RETURN_NULL, PointerGetDatum(), superuser(), to_hex32(), TYPEFUNC_COMPOSITE, values, and verify_gist_page().
| PG_FUNCTION_INFO_V1 | ( | gist_page_items | ) |
| PG_FUNCTION_INFO_V1 | ( | gist_page_items_bytea | ) |
| PG_FUNCTION_INFO_V1 | ( | gist_page_opaque_info | ) |
Definition at line 43 of file gistfuncs.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), get_page_from_raw(), GIST_PAGE_ID, GistPageGetOpaque, MAXALIGN, PageGetSpecialSize(), and PageIsNew().
Referenced by gist_page_items(), gist_page_items_bytea(), and gist_page_opaque_info().