Use fuzzy path cost tiebreaking rule in our oldest supported branches.

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

Commit: 9d6af7367e7b079c021c285f03128bad531b667e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-08-15T15:02:34Z
Releases: 9.0.23
Use fuzzy path cost tiebreaking rule in our oldest supported branches.

We've been doing it that way since 9.2, cf commit 33e99153e93b9acc,
but some recently-added regression test cases are making a few buildfarm
members fail (ie choose the "wrong" plan) in 9.0 and 9.1 due to
platform-specific roundoff differences in cost calculations.  To fix,
back-port the patch that made add_path treat cost difference ratios of
less than 1e-10 as equal.

Files

PathChange+/−
src/backend/optimizer/util/pathnode.c modified +29 −21