From bc843d396032acb75abfbcfab1a0c3b0b252c3f1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 22 Apr 2005 21:58:32 +0000 Subject: First cut at planner support for bitmap index scans. Lots to do yet, but the code is basically working. Along the way, rewrite the entire approach to processing OR index conditions, and make it work in join cases for the first time ever. orindxpath.c is now basically obsolete, but I left it in for the time being to allow easy comparison testing against the old implementation. --- src/backend/executor/nodeBitmapIndexscan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/nodeBitmapIndexscan.c') diff --git a/src/backend/executor/nodeBitmapIndexscan.c b/src/backend/executor/nodeBitmapIndexscan.c index 0c802ea49b0..c877d69b9be 100644 --- a/src/backend/executor/nodeBitmapIndexscan.c +++ b/src/backend/executor/nodeBitmapIndexscan.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/nodeBitmapIndexscan.c,v 1.2 2005/04/20 15:48:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/nodeBitmapIndexscan.c,v 1.3 2005/04/22 21:58:31 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -492,7 +492,8 @@ ExecInitBitmapIndexScan(BitmapIndexScan *node, EState *estate) indexstate->biss_RuntimeKeyInfo = NULL; indexstate->biss_RuntimeContext = NULL; /* Get rid of the speculatively-allocated flag array, too */ - pfree(runtimeKeyInfo); + if (runtimeKeyInfo) + pfree(runtimeKeyInfo); } /* -- cgit v1.2.3