Re: ORDER BY and NULLs

From: T E Schmitz <mailreg(at)numerixtechnology(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-sql(at)postgresql(dot)org
Subject: Re: ORDER BY and NULLs
Date: 2004-09-19 20:50:00
Message-ID: 414DF0F8.4060100@numerixtechnology.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hello Tom,

Tom Lane wrote:
> T E Schmitz <mailreg(at)numerixtechnology(dot)de> writes:
>
>>Greg Stark wrote:
>>
>>>Which book is it?
>
>
>>PostgreSQL by Korry Douglas + Susan Douglas, ISBN 0-7357-1257-3; Feb 2003
>
>
> Hmm, I've heard of that book but never seen it. The authors are not
> participants in the PG community --- AFAICT neither of them have ever
> posted anything in the mailing lists.
>
>
>>The paragraph continues:
>>"If the SELECT command included the clause WHERE phone NOT NULL,
>>PostgreSQL could use the index to satisfy the ORDER BY clause.
>>An index that covers optional (NOT NULL) columns will not be used to
>>speed table joins either."
>
>
> My goodness, it seems to be a veritable fount of misinformation :-(

Well, that's great. My knowledge of SQL is good enough to model a DB and
do run of the mill queries; but when it comes to some fine details I
rely on sensible input ;-)

Thanks for chipping in here and answering what I thought was a dummy
question.

--

Kind Regards/Gruß,

Tarlika

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gaetano Mendola 2004-09-19 20:57:57 Re: How to check postgres running or not ?
Previous Message Tom Lane 2004-09-19 20:30:29 Re: ORDER BY and NULLs