Fix potential platform dependence in gist regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Aug 2015 15:43:37 +0000 (11:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Aug 2015 15:43:37 +0000 (11:43 -0400)
commite39c4afcfa0fb2c708e49e54089118d9b4ba5f89
tree3f7e9dc5949b1c7e71935eb12c08fc9fb8b08bbe
parent18391a8f0649f40bb841e6492895551fd873f79b
Fix potential platform dependence in gist regression test.

The results of the KNN-search test cases were indeterminate, as they asked
the system to sort pairs of points that are exactly equidistant from the
query reference point.  It's a bit surprising that we've seen no
platform-specific failures from this in the buildfarm.  Perhaps IEEE-float
math is well enough standardized that no such failures will ever occur on
supported platforms ... but since this entire regression test has yet to be
shipped in any non-alpha release, that seems like an unduly optimistic
assumption.  Tweak the queries so that the correct output is uniquely
defined.

(The other queries in this test are also underdetermined; but it looks like
they are regurgitating index rows in insertion order, so for the moment
assume that that behavior is stable enough.)

Per Greg Stark's experiments with VAX.  Back-patch to 9.5 where this test
script was introduced.
src/test/regress/expected/gist.out
src/test/regress/sql/gist.sql