Fix oversight in planning for multiple indexscans driven by

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

Commit: 08ccdf020e65d8670936317909e5c48c818eab85
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-07-01T22:07:23Z
Releases: 8.2.0
Fix oversight in planning for multiple indexscans driven by
ScalarArrayOpExpr index quals: we were estimating the right total
number of rows returned, but treating the index-access part of the
cost as if a single scan were fetching that many consecutive index
tuples.  Actually we should treat it as a multiple indexscan, and
if there are enough of 'em the Mackert-Lohman discount should kick in.

Files