OSDN Git Service

Adjust nodeBitmapIndexscan to keep the target index opened from plan
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 May 2005 03:37:23 +0000 (03:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 May 2005 03:37:23 +0000 (03:37 +0000)
commitdb70a312941d7e20d9fff6bbe7d6e9ccf59294e0
treeee82db47b021168c44124d4aa02f1c157d1b6062
parente6e7e64345e882835017e0bbc7e14e72abf00f69
Adjust nodeBitmapIndexscan to keep the target index opened from plan
startup to end, rather than re-opening it in each MultiExecBitmapIndexScan
call.  I had foolishly thought that opening/closing wouldn't be much
more expensive than a rescan call, but that was sheer brain fade.

This seems to fix about half of the performance lossage reported by
Sergey Koposov.  I'm still not sure where the other half went.
src/backend/executor/nodeBitmapIndexscan.c
src/include/nodes/execnodes.h