Make some adjustments to reduce platform dependencies in plan selection.

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

Commit: 4e91824b9490a73619200e9d18b9234263d124d3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-12-02T01:34:18Z
Releases: 8.0.0
Make some adjustments to reduce platform dependencies in plan selection.
In particular, there was a mathematical tie between the two possible
nestloop-with-materialized-inner-scan plans for a join (ie, we computed
the same cost with either input on the inside), resulting in a roundoff
error driven choice, if the relations were both small enough to fit in
sort_mem.  Add a small cost factor to ensure we prefer materializing the
smaller input.  This changes several regression test plans, but with any
luck we will now have more stability across platforms.

Files