Re: Re: [GENERAL] +/- Inf for float8's

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)hub(dot)org
Subject: Re: Re: [GENERAL] +/- Inf for float8's
Date: 2000-08-21 20:49:51
Message-ID: 20000821154951.C17981@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Aug 21, 2000 at 02:32:08PM -0500, Ross J. Reedstrom wrote:
> On Mon, Aug 21, 2000 at 01:39:32PM -0400, Tom Lane wrote:
> >
> > Seems to me the sort order should be
> >
> > -Infinity
> > normal values
> > +Infinity
> > other types of NaN
> > NULL
> >
> > and the reverse in a descending sort.
> >
>
> NULL is taken care of by special casing in the sort code, as I already mentioned,
> and can be fixed immediately.
>

Grr, I take this back. By the time comparetup_* see the tuples, we've no idea
which order we're sorting in, just a pointer to the appropriate sortop.

<whine mode>
Why does every thing I touch in pgsql end up pulling in down into the
guts of the whole system? Even something that looks nicely factored
at first, like the type system? I guess this stuff is _hard_.
</whine mode>

Sigh, back to fixing up referential integrity violations in the DB
I'm finally upgrading from 6.5 to 7.0.X. (DBA life lesson number XX:
implementing RI in the backend _from the very start of a project_ is a
very good thing. Cleansing the data of cruft left from _not_ having RI in
the backend, is a bad thing. And those clever, recursive self-referencing
table structures for representing trees are a pain in the DBA to reload.)

Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Henry B. Hotz 2000-08-21 21:01:32 Re: How Do You Pronounce "PostgreSQL"?
Previous Message Juan Carlos Perez Vazquez 2000-08-21 20:42:47 RE: Row Level Locking Problem