Adjust nodeBitmapIndexscan.c to not keep the index open across calls,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Apr 2005 18:16:38 +0000 (18:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Apr 2005 18:16:38 +0000 (18:16 +0000)
commitf5409f86e8e4b1109daa329afe8a374f96d67acd
tree0023123ec554eca813209fb55f9d64a607e5ad48
parentf5d52b0bff6ba5d4f5db7f7f14e292612357545b
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.
src/backend/executor/nodeBitmapIndexscan.c
src/include/nodes/execnodes.h