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
|
|
|
*
|
|
|
|
*
|
2012-01-02 00:01:58 +01:00
|
|
|
* Portions Copyright (c) 1996-2012, 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
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/executor/nodeIndexscan.h
|
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
|
|
|
|
2006-02-28 05:10:28 +01:00
|
|
|
extern IndexScanState *ExecInitIndexScan(IndexScan *node, EState *estate, int eflags);
|
2002-12-05 16:50:39 +01:00
|
|
|
extern TupleTableSlot *ExecIndexScan(IndexScanState *node);
|
|
|
|
extern void ExecEndIndexScan(IndexScanState *node);
|
|
|
|
extern void ExecIndexMarkPos(IndexScanState *node);
|
|
|
|
extern void ExecIndexRestrPos(IndexScanState *node);
|
2010-07-12 19:01:06 +02:00
|
|
|
extern void ExecReScanIndexScan(IndexScanState *node);
|
2002-12-05 16:50:39 +01:00
|
|
|
|
2011-10-11 20:20:06 +02:00
|
|
|
/*
|
|
|
|
* These routines are exported to share code with nodeIndexonlyscan.c and
|
|
|
|
* nodeBitmapIndexscan.c
|
|
|
|
*/
|
2006-01-25 21:29:24 +01:00
|
|
|
extern void ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
|
2011-10-11 20:20:06 +02:00
|
|
|
List *quals, bool isorderby,
|
2010-12-03 02:50:48 +01:00
|
|
|
ScanKey *scanKeys, int *numScanKeys,
|
2005-11-25 20:47:50 +01:00
|
|
|
IndexRuntimeKeyInfo **runtimeKeys, int *numRuntimeKeys,
|
|
|
|
IndexArrayKeyInfo **arrayKeys, int *numArrayKeys);
|
2005-04-25 03:30:14 +02:00
|
|
|
extern void ExecIndexEvalRuntimeKeys(ExprContext *econtext,
|
2006-10-04 02:30:14 +02:00
|
|
|
IndexRuntimeKeyInfo *runtimeKeys, int numRuntimeKeys);
|
2005-11-25 20:47:50 +01:00
|
|
|
extern bool ExecIndexEvalArrayKeys(ExprContext *econtext,
|
2006-10-04 02:30:14 +02:00
|
|
|
IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
|
2005-11-25 20:47:50 +01:00
|
|
|
extern bool ExecIndexAdvanceArrayKeys(IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
|
2005-04-25 03:30:14 +02:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* NODEINDEXSCAN_H */
|