pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Jean-Luc Lachance <jllachan@nsd.ca>
Cc: Michael S. Tibbetts <mtibbetts@head-cfa.cfa.harvard.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: min() and NaN
Date: 24 Jul 2003 14:35:46 -0400
Message-ID: <87u19bojr1.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <15160.1058902399@sss.pgh.pa.us>
References: <200307221859.h6MIxJk11503@candle.pha.pa.us>
	<15160.1058902399@sss.pgh.pa.us>

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

> NULL can be special, because it acts specially in comparisons anyway.
> But NaN is just a value of the datatype.

Does postgres intend to support all the different types of NaN? Does you
intend to have +Inf and -Inf and underflow detection and all the other goodies
you actually need to make it useful?

If not it seems more useful to just use the handy unknown-value thing SQL
already has and turn NaN into a NULL. 

-- 
greg




view thread (17+ messages)  latest in thread

Message-ID: <87u19bojr1.fsf@stark.dyndns.tv>
Permalink:  ../87u19bojr1.fsf@stark.dyndns.tv/
Also on:    postgresql.org/message-id/87u19bojr1.fsf@stark.dyndns.tv

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gsstark@mit.edu, tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, sszabo@megazone.bigpanda.com, jllachan@nsd.ca, mtibbetts@head-cfa.cfa.harvard.edu
  Subject: Re: min() and NaN
  In-Reply-To: <87u19bojr1.fsf@stark.dyndns.tv>

* 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