• Tom Lane's avatar
    Adjust indexscan planning logic to keep RestrictInfo nodes associated · fa559a86
    Tom Lane authored
    with index qual clauses in the Path representation.  This saves a little
    work during createplan and (probably more importantly) allows reuse of
    cached selectivity estimates during indexscan planning.  Also fix latent
    bug: wrong plan would have been generated for a 'special operator' used
    in a nestloop-inner-indexscan join qual, because the special operator
    would not have gotten into the list of quals to recheck.  This bug is
    only latent because at present the special-operator code could never
    trigger on a join qual, but sooner or later someone will want to do it.
    fa559a86
pathnode.c 24 KB