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: In guc.c, ignore ERANGE errors from strtod().
Date: Mon, 11 Mar 2019 15:25:38 +0000
Message-ID: <E1h3Mo6-0000Fk-U5@gemulon.postgresql.org> (raw)

In guc.c, ignore ERANGE errors from strtod().

Instead, just proceed with the infinity or zero result that it should
return for overflow/underflow.  This avoids a platform dependency,
in that various versions of strtod are inconsistent about whether they
signal ERANGE for a value that's specified as infinity.

It's possible this won't be enough to remove the buildfarm failures
we're seeing from ac75959cd, in which case I'll take out the infinity
test case that commit added.  But first let's see if we can fix it.

Discussion: https://postgr.es/m/E1h33xk-0001Og-Gs@gemulon.postgresql.org

Branch
------
master

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

Modified Files
--------------
src/backend/utils/misc/guc.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)



Message-ID: <E1h3Mo6-0000Fk-U5@gemulon.postgresql.org>
Permalink:  ../E1h3Mo6-0000Fk-U5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h3Mo6-0000Fk-U5@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: In guc.c, ignore ERANGE errors from strtod().
  In-Reply-To: <E1h3Mo6-0000Fk-U5@gemulon.postgresql.org>
  References: <E1h3Mo6-0000Fk-U5@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