X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 61D19329D9C for ; Sun, 19 Sep 2004 21:30:40 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03509-01 for ; Sun, 19 Sep 2004 20:30:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id ABEF8329C7B for ; Sun, 19 Sep 2004 21:30:35 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i8JKUTPE021813; Sun, 19 Sep 2004 16:30:29 -0400 (EDT) To: mailreg@numerixtechnology.de Cc: Greg Stark , pgsql-sql@postgresql.org Subject: Re: ORDER BY and NULLs In-reply-to: <414DEA7F.6050100@numerixtechnology.de> References: <011d01c49e5b$c88fdb20$2766f30a@development.greatgulfhomes.com> <414DB1AB.5080207@sympatico.ca> <414DB594.5000300@numerixtechnology.de> <19733.1095613137@sss.pgh.pa.us> <414DBF6D.8040500@numerixtechnology.de> <87zn3mjeaw.fsf@stark.xeocode.com> <414DEA7F.6050100@numerixtechnology.de> Comments: In-reply-to T E Schmitz message dated "Sun, 19 Sep 2004 21:22:23 +0100" Date: Sun, 19 Sep 2004 16:30:29 -0400 Message-ID: <21812.1095625829@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/140 X-Sequence-Number: 18986 T E Schmitz 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 :-( I wonder how much of this is stuff that is true for Oracle and they just assumed it carried over? regards, tom lane