X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 38C34D1D55A for ; Mon, 9 Feb 2004 05:34:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70687-07 for ; Mon, 9 Feb 2004 01:34:45 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 859EDD1D1C4 for ; Mon, 9 Feb 2004 01:34:38 -0400 (AST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 4396408; Sun, 08 Feb 2004 21:35:49 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Karl Denninger , Tom Lane Subject: Re: Why is query selecting sequential? Date: Sun, 8 Feb 2004 21:34:18 -0800 User-Agent: KMail/1.4.3 Cc: pgsql-performance@postgresql.org References: <20040206153602.B4910@Denninger.Net> <17425.1076136714@sss.pgh.pa.us> <20040207101052.A15045@Denninger.Net> In-Reply-To: <20040207101052.A15045@Denninger.Net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200402082134.18156.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/114 X-Sequence-Number: 5638 Karl, > BTW, the other posted "cleaner" model doesn't work for me. If there is NO > row in the subtable that matches, the other version returns nothing (which > makes sense since the initial select fails to match any rows as one of the > things its trying to match is missing.) Ah, wasn't thinking of that case. Problem with not really knowing what the database is about. -- Josh Berkus Aglio Database Solutions San Francisco