1996-07-09 02:22:35 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* nodeIndexscan.h
|
1997-09-07 01:04:48 -04:00
|
|
|
*
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*
|
2004-12-31 17:04:05 -05:00
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
2005-10-14 22:49:52 -04:00
|
|
|
* $PostgreSQL: pgsql/src/include/executor/nodeIndexscan.h,v 1.24 2005/10/15 02:49:44 momjian Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 01:04:48 -04:00
|
|
|
#ifndef NODEINDEXSCAN_H
|
|
|
|
|
#define NODEINDEXSCAN_H
|
|
|
|
|
|
2002-12-05 10:50:39 -05:00
|
|
|
#include "nodes/execnodes.h"
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1997-09-08 17:56:23 -04:00
|
|
|
extern int ExecCountSlotsIndexScan(IndexScan *node);
|
2002-12-05 10:50:39 -05:00
|
|
|
extern IndexScanState *ExecInitIndexScan(IndexScan *node, EState *estate);
|
|
|
|
|
extern TupleTableSlot *ExecIndexScan(IndexScanState *node);
|
|
|
|
|
extern void ExecEndIndexScan(IndexScanState *node);
|
|
|
|
|
extern void ExecIndexMarkPos(IndexScanState *node);
|
|
|
|
|
extern void ExecIndexRestrPos(IndexScanState *node);
|
|
|
|
|
extern void ExecIndexReScan(IndexScanState *node, ExprContext *exprCtxt);
|
|
|
|
|
|
2005-04-24 21:30:14 -04:00
|
|
|
/* routines exported to share code with nodeBitmapIndexscan.c */
|
|
|
|
|
extern bool ExecIndexBuildScanKeys(PlanState *planstate, List *quals,
|
|
|
|
|
List *strategies, List *subtypes,
|
|
|
|
|
ExprState ***runtimeKeyInfo,
|
|
|
|
|
ScanKey *scanKeys, int *numScanKeys);
|
|
|
|
|
extern void ExecIndexEvalRuntimeKeys(ExprContext *econtext,
|
2005-10-14 22:49:52 -04:00
|
|
|
ExprState **run_keys,
|
|
|
|
|
ScanKey scan_keys,
|
|
|
|
|
int n_keys);
|
2005-04-24 21:30:14 -04:00
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* NODEINDEXSCAN_H */
|