| From: | T E Schmitz <mailreg(at)numerixtechnology(dot)de> |
|---|---|
| To: | Greg Stark <gsstark(at)mit(dot)edu>, tgl(at)sss(dot)pgh(dot)pa(dot)us |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: ORDER BY and NULLs |
| Date: | 2004-09-20 08:04:26 |
| Message-ID: | 414E8F0A.6020602@numerixtechnology.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Hello,
Greg Stark wrote:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>
>
>>>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 :-(
>>
> I wonder if they just tried explain on a bunch of queries and noticed that
> postgres wasn't using an index for SELECT * FROM foo ORDER BY bar and came up
> with explanations for the patterns they saw?
This paragraph was in the chapter about PostgreSQL indexing and the
paragraph itself was entitled "Indexes and Null values".
--
Regards/Gruß,
Tarlika Elisabeth Schmitz
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gaetano Mendola | 2004-09-20 10:05:55 | Re: How to check postgres running or not ? |
| Previous Message | Reiner Dassing | 2004-09-20 07:20:03 | Re: How to check postgres running or not ? |