Re: Re: [GENERAL] +/- Inf for float8's
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Ross J. Reedstrom" <reedstrm@rice.edu>
Cc: Peter Eisentraut <peter_e@gmx.net>, Thomas Lockhart <lockhart@alumni.caltech.edu>, pgsql-hackers@hub.org
Date: 2000-08-21T17:39:32Z
Lists: pgsql-hackers
"Ross J. Reedstrom" <reedstrm@rice.edu> writes: > While examining the output from ORDER BY queries, both using and not using > an index, I came across a discrepancy: the explicit handling of NULLs in > the tuplesort case always sorts NULLs to the end, regardless of direction > of sort. Yeah. I think that's widely considered a bug --- we have a TODO item to fix it. You might care to dig in the archives for prior discussions. > To make the direct sort the same as the index read would work for NULL, > but for NaN would either require allowing NaN to be returned as > > Infinity, which doesn't happen now, Seems to me the sort order should be -Infinity normal values +Infinity other types of NaN NULL and the reverse in a descending sort. > or add another ordering operator that is only used for the sort case > (use of '>' and '<' seems to be hardcoded all the way to the parser) don't even think about that... regards, tom lane