• Tom Lane's avatar
    Adjust nodeBitmapIndexscan to keep the target index opened from plan · db70a312
    Tom Lane authored
    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.
    db70a312
nodeBitmapIndexscan.c 7.94 KB