diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-04-21 00:51:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-04-21 00:51:14 -0400 |
commit | 33e99153e93b9accfa51ac036828144e1c2507b7 (patch) | |
tree | 9d0d57a0ec28d5b47d7cea5c3e18df60a6f368a7 /src/backend/commands/functioncmds.c | |
parent | 09ff76fcdb275769ac4d1a45a67416735613d04b (diff) | |
download | postgresql-33e99153e93b9accfa51ac036828144e1c2507b7.tar.gz postgresql-33e99153e93b9accfa51ac036828144e1c2507b7.zip |
Use fuzzy not exact cost comparison for the final tie-breaker in add_path.
Instead of an exact cost comparison, use a fuzzy comparison with 1e-10
delta after all other path metrics have proved equal. This is to avoid
having platform-specific roundoff behaviors determine the choice when
two paths are really the same to our cost estimators. Adjust the
recently-added test case that made it obvious we had a problem here.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions