Adjust indexscan planning logic to keep RestrictInfo nodes associated

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

Commit: fa559a86eec2ae90fd63fd7e6563e42f7dc619e0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-01-05T23:39:54Z
Releases: 8.0.0
Adjust indexscan planning logic to keep RestrictInfo nodes associated
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.

Files