From 9d64632144034cd6b0a32bad1c3a305008149754 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 20 Apr 2005 15:48:36 +0000 Subject: 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. --- src/include/nodes/execnodes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/nodes/execnodes.h') 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; -- cgit v1.2.3