1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* nodeIndexscan.h
|
1997-09-07 07:04:48 +02:00
|
|
|
*
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2004-12-31 23:04:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2005-10-15 04:49:52 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/executor/nodeIndexscan.h,v 1.24 2005/10/15 02:49:44 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef NODEINDEXSCAN_H
|
|
|
|
#define NODEINDEXSCAN_H
|
|
|
|
|
2002-12-05 16:50:39 +01:00
|
|
|
#include "nodes/execnodes.h"
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-08 23:56:23 +02:00
|
|
|
extern int ExecCountSlotsIndexScan(IndexScan *node);
|
2002-12-05 16:50:39 +01: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-25 03:30:14 +02: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-15 04:49:52 +02:00
|
|
|
ExprState **run_keys,
|
|
|
|
ScanKey scan_keys,
|
|
|
|
int n_keys);
|
2005-04-25 03:30:14 +02:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* NODEINDEXSCAN_H */
|