From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Brewer <fumanchu@aminus.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: SELECT '(1, nan, 3)'::cube;
Date: Tue, 15 Mar 2011 14:43:40 -0400
Message-ID: <2336.1300214620@sss.pgh.pa.us> (raw)
In-Reply-To: <F1962646D3B64642B7C9A06068EE1E64110D76A1@ex10.hostedexchange.local>
References: <F1962646D3B64642B7C9A06068EE1E64110D759F@ex10.hostedexchange.local>
<432.1300208836@sss.pgh.pa.us>
<F1962646D3B64642B7C9A06068EE1E64110D76A1@ex10.hostedexchange.local>
"Robert Brewer" <fumanchu@aminus.org> writes:
> Tom Lane wrote:
>> I'd suggest rethinking your design to avoid needing NaN in a cube.
> I could, of course, use a sentinel value like -1 or even -Inf to mean
> "indeterminate", but I'd like future versions of this app (wink) to be
> able to use qnan's as IEEE 754 intended. Note that cube doesn't take
> NULL either. It may be surprising and underspecified, but using NaN and
> Inf in other cube operations (including gist indices) does indeed work
> quite well--probably because they are, after all, just floats. I believe
> it's a bug to handle only some subset of values of an extremely
> well-known and well-specified datatype like float, but of course I
> understand if contrib modules aren't high priority.
Well, this is the sort of thing that'll only get fixed when someone who
actually uses the datatype is motivated to improve it. IOW, if you
submitted a patch it'd likely get accepted.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, fumanchu@aminus.org
Subject: Re: SELECT '(1, nan, 3)'::cube;
In-Reply-To: <2336.1300214620@sss.pgh.pa.us>
References: <F1962646D3B64642B7C9A06068EE1E64110D759F@ex10.hostedexchange.local> <432.1300208836@sss.pgh.pa.us> <F1962646D3B64642B7C9A06068EE1E64110D76A1@ex10.hostedexchange.local> <2336.1300214620@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