• Tom Lane's avatar
    Fix oversight in planning for multiple indexscans driven by · 08ccdf02
    Tom Lane authored
    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.
    08ccdf02
selfuncs.c 135 KB