Fix cost_mergejoin's failure to adjust for rescanning of non-unique merge join

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

Commit: c473d923515e03fe5fd43c2ca15d52363a93f488
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-02-06T23:43:24Z
Releases: 8.4.0
Fix cost_mergejoin's failure to adjust for rescanning of non-unique merge join
keys when considering a semi or anti join.  This requires estimating the
selectivity of the merge qual as though it were a regular inner join condition.
To allow caching both that and the real outer-join-aware selectivity, split
RestrictInfo.this_selec into two fields.

This fixes one of the problems reported by Kevin Grittner.

Files