summaryrefslogtreecommitdiff
path: root/src/include/nodes/execnodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-04-20 15:48:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-04-20 15:48:36 +0000
commit9d64632144034cd6b0a32bad1c3a305008149754 (patch)
tree3ffabef3865521ea9a6e48e7e2213c369ff01abc /src/include/nodes/execnodes.h
parentde4fbfadc50efe16cc05ea929bf5b408143d23fa (diff)
Minor performance improvement: avoid unnecessary creation/unioning of
bitmaps for multiple indexscans. Instead just let each indexscan add TIDs directly into the BitmapOr node's result bitmap.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r--src/include/nodes/execnodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index a5176c2f955..01c50747620 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.126 2005/04/19 22:35:17 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.127 2005/04/20 15:48:36 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -901,6 +901,7 @@ typedef struct IndexScanState
/* ----------------
* BitmapIndexScanState information
*
+ * result bitmap to return output into, or NULL
* ScanKeys Skey structures to scan index rel
* NumScanKeys number of Skey structs
* RuntimeKeyInfo array of exprstates for Skeys
@@ -914,6 +915,7 @@ typedef struct IndexScanState
typedef struct BitmapIndexScanState
{
ScanState ss; /* its first field is NodeTag */
+ TIDBitmap *biss_result;
ScanKey biss_ScanKeys;
int biss_NumScanKeys;
ExprState **biss_RuntimeKeyInfo;