Adjust nodeBitmapIndexscan.c to not keep the index open across calls,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 186655e9a53b62f75e57bcfc218129a6cfe8ea68
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-04-24T18:16:38Z
Releases: 8.1.0
Adjust nodeBitmapIndexscan.c to not keep the index open across calls,
but just to open and close it during MultiExecBitmapIndexScan.  This
avoids acquiring duplicate resources (eg, multiple locks on the same
relation) in a tree with many bitmap scans.  Also, don't bother to
lock the parent heap at all here, since we must be underneath a
BitmapHeapScan node that will be holding a suitable lock.

Files

PathChange+/−
src/backend/executor/nodeBitmapIndexscan.c modified +29 −83
src/include/nodes/execnodes.h modified +1 −5