pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Adjust new test case for more portability.
Date: Sat, 24 Nov 2018 04:49:33 +0000
Message-ID: <E1gQPsr-0002MC-Or@gemulon.postgresql.org> (raw)

Adjust new test case for more portability.

Early returns from the buildfarm say that most critters are good with
commit cbdb8b4c0, but gaur gives unexpected results with the test case
involving a float8 that's one-ULP-less-than-2^63.  It appears that that
platform's version of rint() rounds that value up to 2^63 instead of
leaving it be.  This is possibly a bug, and it's also possible that no
other platform anybody is using anywhere behaves likewise.  Still, the
point of the test is not to insist that everybody's rint() behaves exactly
the same.  Let's use two-ULPs-less-than-2^63 instead, which I've tested
to act the same on gaur as on more modern hardware.

(This is, more or less, exactly the portability issue I'd feared might
arise...)

Discussion: https://postgr.es/m/15519-4fc785b483201ff1@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/452b637d4b02e4aa09d45a34d7a048d3f70116bb

Modified Files
--------------
src/test/regress/expected/float8-small-is-zero.out | 4 ++--
src/test/regress/expected/float8.out               | 4 ++--
src/test/regress/sql/float8.sql                    | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)



Message-ID: <E1gQPsr-0002MC-Or@gemulon.postgresql.org>
Permalink:  ../E1gQPsr-0002MC-Or@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gQPsr-0002MC-Or@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Adjust new test case for more portability.
  In-Reply-To: <E1gQPsr-0002MC-Or@gemulon.postgresql.org>
  References: <E1gQPsr-0002MC-Or@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox