pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Infinities in type numeric
Date: Fri, 12 Jun 2020 19:02:37 +0100
Message-ID: <87h7vg5fo9.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <663832.1591969316@sss.pgh.pa.us>
References: <606717.1591924582@sss.pgh.pa.us>
	<87lfks5uwl.fsf@news-spur.riddles.org.uk>
	<663832.1591969316@sss.pgh.pa.us>

>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

 [...]
 Tom> so that a finite value should never map to INT[64]_MIN, making it
 Tom> safe to do as you suggest. I agree that distinguishing +Inf from
 Tom> NaN is probably more useful than distinguishing it from the very
 Tom> largest class of finite values, so will do it as you suggest.
 Tom> Thanks!

It would make sense to make sure there's a test case in which at least
one value of all three of: a finite value much greater than 10^332, a
+Inf, and a NaN were all present in the same sort, if there isn't one
already.

-- 
Andrew (irc:RhodiumToad)





view thread (21+ messages)  latest in thread

Message-ID: <87h7vg5fo9.fsf@news-spur.riddles.org.uk>
Permalink:  ../87h7vg5fo9.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87h7vg5fo9.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us
  Subject: Re: Infinities in type numeric
  In-Reply-To: <87h7vg5fo9.fsf@news-spur.riddles.org.uk>
  References: <606717.1591924582@sss.pgh.pa.us> <87lfks5uwl.fsf@news-spur.riddles.org.uk> <663832.1591969316@sss.pgh.pa.us> <87h7vg5fo9.fsf@news-spur.riddles.org.uk>

* 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