|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/gist_private.h"#include "access/gistscan.h"#include "access/relscan.h"#include "utils/float.h"#include "utils/lsyscache.h"#include "utils/memutils.h"#include "utils/rel.h"
Go to the source code of this file.
Functions | |
| static int | pairingheap_GISTSearchItem_cmp (const pairingheap_node *a, const pairingheap_node *b, void *arg) |
| IndexScanDesc | gistbeginscan (Relation r, int nkeys, int norderbys) |
| void | gistrescan (IndexScanDesc scan, ScanKey key, int nkeys, ScanKey orderbys, int norderbys) |
| void | gistendscan (IndexScanDesc scan) |
| IndexScanDesc gistbeginscan | ( | Relation | r, |
| int | nkeys, | ||
| int | norderbys | ||
| ) |
Definition at line 74 of file gistscan.c.
References createTempGistContext(), fb(), IndexScanDescData::indexRelation, initGISTstate(), InvalidBlockNumber, InvalidXLogRecPtr, MemoryContextSwitchTo(), IndexScanDescData::numberOfOrderBys, IndexScanDescData::opaque, palloc(), palloc0_array, palloc0_object, palloc_array, RelationGetIndexScan(), GISTSTATE::scanCxt, GISTSTATE::tempCxt, IndexScanDescData::xs_orderbynulls, and IndexScanDescData::xs_orderbyvals.
Referenced by gisthandler().
| void gistendscan | ( | IndexScanDesc | scan | ) |
Definition at line 347 of file gistscan.c.
References fb(), freeGISTstate(), and IndexScanDescData::opaque.
Referenced by gisthandler().
Definition at line 127 of file gistscan.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, CreateTemplateTupleDesc(), elog, ERROR, fb(), fmgr_info_copy(), FmgrInfo::fn_extra, FmgrInfo::fn_oid, get_func_rettype(), GIST_DISTANCE_PROC, i, IndexScanDescData::indexRelation, IndexRelationGetNumberOfKeyAttributes, IndexScanDescData::keyData, MemoryContextReset(), MemoryContextSwitchTo(), IndexScanDescData::numberOfKeys, IndexScanDescData::numberOfOrderBys, OidIsValid, IndexScanDescData::opaque, IndexScanDescData::orderByData, pairingheap_allocate(), pairingheap_GISTSearchItem_cmp(), palloc(), pfree(), RelationData::rd_opcintype, RelationGetNumberOfAttributes, RelationGetRelationName, ScanKeyData::sk_func, SK_ISNULL, SK_SEARCHNOTNULL, SK_SEARCHNULL, TupleDescAttr(), TupleDescInitEntry(), IndexScanDescData::xs_hitup, IndexScanDescData::xs_hitupdesc, and IndexScanDescData::xs_want_itup.
Referenced by gisthandler().
|
static |
Definition at line 30 of file gistscan.c.
References a, arg, b, cmp(), fb(), float8_cmp_internal(), GISTSearchItemIsHeap, i, and IndexScanDescData::numberOfOrderBys.
Referenced by gistrescan().