pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <stark@mit.edu>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Fix some corner cases that cube_in rejects
Date: Mon, 29 Aug 2016 15:54:18 -0400
Message-ID: <18779.1472500458@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM-w4HOLEejnJxTYTn=j8XjQJfYoh1Z+k711cfLkPSAi0HzyhQ@mail.gmail.com>
References: <15085.1472494782@sss.pgh.pa.us>
	<CAM-w4HOLEejnJxTYTn=j8XjQJfYoh1Z+k711cfLkPSAi0HzyhQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Greg Stark <stark@mit.edu> writes:
> On Mon, Aug 29, 2016 at 7:19 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> To deal with the infinity/NaN issues, I made cube_in and cube_out rely
>> on float8in_internal and float8out_internal, as we recently did for the
>> core geometric types.  That causes the response to "1e-700" to be an
>> out-of-range error rather than silent underflow, which seems to me to
>> be fine, especially since it removes the platform dependency that's
>> responsible for needing the separate cube_1.out and cube_3.out files.

> So what happens to a database that has invalid cubes in it already?
> Offhand I suspect they mostly become valid since float8in will handle
> NaN and the like.

Nothing really.  cube_out works fine.  The point of substituting
float8out_internal is mostly to make sure we get platform-independent
spellings for inf and nan.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (5+ messages)  latest in thread

Message-ID: <18779.1472500458@sss.pgh.pa.us>
Permalink:  ../18779.1472500458@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18779.1472500458@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, stark@mit.edu
  Subject: Re: Fix some corner cases that cube_in rejects
  In-Reply-To: <18779.1472500458@sss.pgh.pa.us>
  References: <15085.1472494782@sss.pgh.pa.us> <CAM-w4HOLEejnJxTYTn=j8XjQJfYoh1Z+k711cfLkPSAi0HzyhQ@mail.gmail.com> <18779.1472500458@sss.pgh.pa.us>

* 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