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
|
|
|
*
|
2006-02-27 23:10:28 -05:00
|
|
|
* $PostgreSQL: pgsql/src/include/executor/nodeIndexscan.h,v 1.27 2006/02/28 04:10:28 tgl 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);
|
2006-02-27 23:10:28 -05:00
|
|
|
extern IndexScanState *ExecInitIndexScan(IndexScan *node, EState *estate, int eflags);
|
2002-12-05 10:50:39 -05:00
|
|
|
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 */
|
2006-01-25 15:29:24 -05:00
|
|
|
extern void ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
|
|
|
|
|
List *quals, List *strategies, List *subtypes,
|
2005-11-25 14:47:50 -05:00
|
|
|
ScanKey *scanKeys, int *numScanKeys,
|
|
|
|
|
IndexRuntimeKeyInfo **runtimeKeys, int *numRuntimeKeys,
|
|
|
|
|
IndexArrayKeyInfo **arrayKeys, int *numArrayKeys);
|
2005-04-24 21:30:14 -04:00
|
|
|
extern void ExecIndexEvalRuntimeKeys(ExprContext *econtext,
|
2005-11-25 14:47:50 -05:00
|
|
|
IndexRuntimeKeyInfo *runtimeKeys, int numRuntimeKeys);
|
|
|
|
|
extern bool ExecIndexEvalArrayKeys(ExprContext *econtext,
|
|
|
|
|
IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
|
|
|
|
|
extern bool ExecIndexAdvanceArrayKeys(IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
|
2005-04-24 21:30:14 -04:00
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* NODEINDEXSCAN_H */
|