Fix compare_fuzzy_path_costs() to behave a bit more sanely. The original

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

Commit: 37c443eefd3cac0778c915aaecdceda1a5e1d800
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-07-22T19:12:02Z
Releases: 8.1.0
Fix compare_fuzzy_path_costs() to behave a bit more sanely.  The original
coding would ignore startup cost differences of less than 1% of the
estimated total cost; which was OK for normal planning but highly not OK
if a very small LIMIT was applied afterwards, so that startup cost becomes
the name of the game.  Instead, compare startup and total costs fuzzily
but independently.  This changes the plan selected for two queries in the
regression tests; adjust expected-output files for resulting changes in
row order.  Per reports from Dawid Kuroczko and Sam Mason.

Files