Re: [HACKERS] Clarification of NULL values - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Clarification of NULL values
Date
Msg-id 7983353df1576412ec11574c40283e75
Whole thread Raw
In response to [HACKERS] Clarification of NULL values  (adrian@hottub.org)
List pgsql-hackers
adrian@hottub.org wrote:
> >From X3H2-97-030 (I think)
> ... with the
> following special treatment of null values. Whether a sort
> key value that is null is considered greater or less than
> a non-null value is implementation-defined, but all sort
> key values that are null shall either be considered greater
> than all non-null values or be considered less than all non-
> null values. PVi is said to precede QVi if the value of the
> <comparison predicate> "PVi <comp op> QVi" is true for the
> applicable <comp op>.

Well, it means that as long as the nulls aren't scattered in the middle
of the returned ordered values you can do anything you want :)

Postgres does it correctly according to this standard...

            - Tom

------------------------------

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] NULL field records handling in order clause
Next
From: Sean Reifschneider
Date:
Subject: [HACKERS] Database Restore with 6.1 fails (Name -> name).