139 #define IndexScanIsValid(scan) PointerIsValid(scan)
158 int nkeys,
int norderbys);
164 ScanKey orderbys,
int norderbys);
169 int nkeys,
int norderbys,
Snapshot snapshot);
175 Relation indexrel,
int nkeys,
int norderbys,
188 void *callback_state);
199 bool recheckOrderBy);
201 Datum attoptions,
bool validate);
208 int nkeys,
int norderbys);
static Datum values[MAXATTR]
void systable_endscan(SysScanDesc sysscan)
void systable_inplace_update_cancel(void *state)
IndexBulkDeleteResult * index_vacuum_cleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *istat)
struct IndexOrderByDistance IndexOrderByDistance
bool systable_recheck_tuple(SysScanDesc sysscan, HeapTuple tup)
bool index_insert(Relation indexRelation, Datum *values, bool *isnull, ItemPointer heap_t_ctid, Relation heapRelation, IndexUniqueCheck checkUnique, bool indexUnchanged, struct IndexInfo *indexInfo)
bool(* IndexBulkDeleteCallback)(ItemPointer itemptr, void *state)
void IndexScanEnd(IndexScanDesc scan)
void index_restrpos(IndexScanDesc scan)
IndexScanDesc index_beginscan_parallel(Relation heaprel, Relation indexrel, int nkeys, int norderbys, ParallelIndexScanDesc pscan)
struct IndexVacuumInfo IndexVacuumInfo
IndexScanDesc index_beginscan_bitmap(Relation indexRelation, Snapshot snapshot, int nkeys)
void systable_inplace_update_begin(Relation relation, Oid indexId, bool indexOK, Snapshot snapshot, int nkeys, const ScanKeyData *key, HeapTuple *oldtupcopy, void **state)
TransactionId index_compute_xid_horizon_for_tuples(Relation irel, Relation hrel, Buffer ibuf, OffsetNumber *itemnos, int nitems)
void index_close(Relation relation, LOCKMODE lockmode)
bool index_can_return(Relation indexRelation, int attno)
struct IndexBuildResult IndexBuildResult
ItemPointer index_getnext_tid(IndexScanDesc scan, ScanDirection direction)
SysScanDesc systable_beginscan_ordered(Relation heapRelation, Relation indexRelation, Snapshot snapshot, int nkeys, ScanKey key)
void systable_inplace_update_finish(void *state, HeapTuple tuple)
HeapTuple systable_getnext(SysScanDesc sysscan)
FmgrInfo * index_getprocinfo(Relation irel, AttrNumber attnum, uint16 procnum)
IndexScanDesc index_beginscan(Relation heapRelation, Relation indexRelation, Snapshot snapshot, int nkeys, int norderbys)
RegProcedure index_getprocid(Relation irel, AttrNumber attnum, uint16 procnum)
bool index_getnext_slot(IndexScanDesc scan, ScanDirection direction, struct TupleTableSlot *slot)
void systable_endscan_ordered(SysScanDesc sysscan)
HeapTuple systable_getnext_ordered(SysScanDesc sysscan, ScanDirection direction)
void index_markpos(IndexScanDesc scan)
Relation try_index_open(Oid relationId, LOCKMODE lockmode)
void index_endscan(IndexScanDesc scan)
Size index_parallelscan_estimate(Relation indexRelation, int nkeys, int norderbys, Snapshot snapshot)
struct IndexBulkDeleteResult IndexBulkDeleteResult
IndexBulkDeleteResult * index_bulk_delete(IndexVacuumInfo *info, IndexBulkDeleteResult *istat, IndexBulkDeleteCallback callback, void *callback_state)
void index_parallelscan_initialize(Relation heapRelation, Relation indexRelation, Snapshot snapshot, ParallelIndexScanDesc target)
Relation index_open(Oid relationId, LOCKMODE lockmode)
char * BuildIndexValueDescription(Relation indexRelation, const Datum *values, const bool *isnull)
struct SysScanDescData * SysScanDesc
bool index_fetch_heap(IndexScanDesc scan, struct TupleTableSlot *slot)
bytea * index_opclass_options(Relation indrel, AttrNumber attnum, Datum attoptions, bool validate)
int64 index_getbitmap(IndexScanDesc scan, TIDBitmap *bitmap)
void index_parallelrescan(IndexScanDesc scan)
void index_rescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int norderbys)
struct ParallelIndexScanDescData * ParallelIndexScanDesc
struct IndexScanDescData * IndexScanDesc
void index_insert_cleanup(Relation indexRelation, struct IndexInfo *indexInfo)
SysScanDesc systable_beginscan(Relation heapRelation, Oid indexId, bool indexOK, Snapshot snapshot, int nkeys, ScanKey key)
IndexScanDesc RelationGetIndexScan(Relation indexRelation, int nkeys, int norderbys)
void index_store_float8_orderby_distances(IndexScanDesc scan, Oid *orderByTypes, IndexOrderByDistance *distances, bool recheckOrderBy)
BlockNumber pages_deleted
BlockNumber pages_newly_deleted
BufferAccessStrategy strategy
static void callback(struct sockaddr *addr, struct sockaddr *mask, void *unused)