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: Back off output precision in circle.sql regression test.
Date: Sun, 25 Aug 2019 16:15:12 +0000
Message-ID: <E1i1vAe-0004g8-GA@gemulon.postgresql.org> (raw)

Back off output precision in circle.sql regression test.

We were setting extra_float_digits = 0 to avoid platform-dependent
output in this test, but that's still able to expose platform-specific
roundoff behavior in some new test cases added by commit a3d284485,
as reported by Peter Eisentraut.  Reduce it to -1 to hide that.

(Over in geometry.sql, we're using -3, which is an ancient decision
dating to 337f73b1b.  I wonder whether that's overkill now.  But
there's probably little value in trying to change it.)

Back-patch to v12 where a3d284485 came in; there's no evidence that
we have any platform-dependent issues here before that.

Discussion: https://postgr.es/m/15551268-e224-aa46-084a-124b64095ee3@2ndquadrant.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cd714b3507c914e78d47352d1e126b4bec4380ad

Modified Files
--------------
src/test/regress/expected/circle.out | 15 ++++++++-------
src/test/regress/sql/circle.sql      |  5 +++--
2 files changed, 11 insertions(+), 9 deletions(-)



view thread (2+ messages)

Message-ID: <E1i1vAe-0004g8-GA@gemulon.postgresql.org>
Permalink:  ../E1i1vAe-0004g8-GA@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i1vAe-0004g8-GA@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: Back off output precision in circle.sql regression test.
  In-Reply-To: <E1i1vAe-0004g8-GA@gemulon.postgresql.org>
  References: <E1i1vAe-0004g8-GA@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