summaryrefslogtreecommitdiff
path: root/src/include/executor/nodeIndexscan.h
diff options
context:
space:
mode:
authorTom Lane2008-04-13 20:51:21 +0000
committerTom Lane2008-04-13 20:51:21 +0000
commit226837e57eb6092b160e7272e7d09a3748c0eb47 (patch)
tree9d69fdeed5f89838191d2ba223e0d7a920bd4797 /src/include/executor/nodeIndexscan.h
parent24558da14a26337e945732d3b435b07edcbb6733 (diff)
Since createplan.c no longer cares whether index operators are lossy, it has
no particular need to do get_op_opfamily_properties() while building an indexscan plan. Postpone that lookup until executor start. This simplifies createplan.c a lot more than it complicates nodeIndexscan.c, and makes things more uniform since we already had to do it that way for RowCompare expressions. Should be a bit faster too, at least for plans that aren't re-used many times, since we avoid palloc'ing and perhaps copying the intermediate list data structure.
Diffstat (limited to 'src/include/executor/nodeIndexscan.h')
-rw-r--r--src/include/executor/nodeIndexscan.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/executor/nodeIndexscan.h b/src/include/executor/nodeIndexscan.h
index 27f4f6c9ace..674c4572341 100644
--- a/src/include/executor/nodeIndexscan.h
+++ b/src/include/executor/nodeIndexscan.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/nodeIndexscan.h,v 1.31 2008/01/01 19:45:57 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/executor/nodeIndexscan.h,v 1.32 2008/04/13 20:51:21 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,8 +26,7 @@ extern void ExecIndexReScan(IndexScanState *node, ExprContext *exprCtxt);
/* routines exported to share code with nodeBitmapIndexscan.c */
extern void ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
- List *quals, List *strategies, List *subtypes,
- ScanKey *scanKeys, int *numScanKeys,
+ List *quals, ScanKey *scanKeys, int *numScanKeys,
IndexRuntimeKeyInfo **runtimeKeys, int *numRuntimeKeys,
IndexArrayKeyInfo **arrayKeys, int *numArrayKeys);
extern void ExecIndexEvalRuntimeKeys(ExprContext *econtext,