| 1 |
/*------------------------------------------------------------------------- |
| 2 |
* |
| 3 |
* nodeIndexscan.h |
| 4 |
* |
| 5 |
* |
| 6 |
* |
| 7 |
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group |
| 8 |
* Portions Copyright (c) 1994, Regents of the University of California |
| 9 |
* |
| 10 |
* src/include/executor/nodeIndexscan.h |
| 11 |
* |
| 12 |
*------------------------------------------------------------------------- |
| 13 |
*/ |
| 14 |
#ifndef NODEINDEXSCAN_H |
| 15 |
#define NODEINDEXSCAN_H |
| 16 |
|
| 17 |
#include "access/genam.h" |
| 18 |
#include "access/parallel.h" |
| 19 |
#include "nodes/execnodes.h" |
| 20 |
|
| 21 |
extern IndexScanState *ExecInitIndexScan(IndexScan *node, EState *estate, int eflags); |
| 22 |
extern void ExecEndIndexScan(IndexScanState *node); |
| 23 |
extern void ExecIndexMarkPos(IndexScanState *node); |
| 24 |
extern void ExecIndexRestrPos(IndexScanState *node); |
| 25 |
extern void ExecReScanIndexScan(IndexScanState *node); |
| 26 |
extern void ExecIndexScanEstimate(IndexScanState *node, ParallelContext *pcxt); |
| 27 |
extern void ExecIndexScanInitializeDSM(IndexScanState *node, ParallelContext *pcxt); |
| 28 |
extern void ExecIndexScanReInitializeDSM(IndexScanState *node, ParallelContext *pcxt); |
| 29 |
extern void ExecIndexScanInitializeWorker(IndexScanState *node, |
| 30 |
ParallelWorkerContext *pwcxt); |
| 31 |
extern void ExecIndexScanRetrieveInstrumentation(IndexScanState *node); |
| 32 |
|
| 33 |
/* |
| 34 |
* These routines are exported to share code with nodeIndexonlyscan.c and |
| 35 |
* nodeBitmapIndexscan.c |
| 36 |
*/ |
| 37 |
extern void ExecIndexBuildScanKeys(PlanState *planstate, Relation index, |
| 38 |
List *quals, bool isorderby, |
| 39 |
ScanKey *scanKeys, int *numScanKeys, |
| 40 |
IndexRuntimeKeyInfo **runtimeKeys, int *numRuntimeKeys, |
| 41 |
IndexArrayKeyInfo **arrayKeys, int *numArrayKeys); |
| 42 |
extern void ExecIndexEvalRuntimeKeys(ExprContext *econtext, |
| 43 |
IndexRuntimeKeyInfo *runtimeKeys, int numRuntimeKeys); |
| 44 |
extern bool ExecIndexEvalArrayKeys(ExprContext *econtext, |
| 45 |
IndexArrayKeyInfo *arrayKeys, int numArrayKeys); |
| 46 |
extern bool ExecIndexAdvanceArrayKeys(IndexArrayKeyInfo *arrayKeys, int numArrayKeys); |
| 47 |
|
| 48 |
#endif /* NODEINDEXSCAN_H */ |