Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E48049FB1F6 for ; Thu, 1 Mar 2007 18:23:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 87711-10 for ; Thu, 1 Mar 2007 18:23:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by postgresql.org (Postfix) with ESMTP id ED3589FB468 for ; Thu, 1 Mar 2007 18:23:08 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 28F213525A; Thu, 1 Mar 2007 14:23:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 274F235249; Thu, 1 Mar 2007 14:23:08 -0800 (PST) Date: Thu, 1 Mar 2007 14:23:08 -0800 (PST) From: Stephan Szabo To: Rob Schall Cc: pgsql-performance@postgresql.org Subject: Re: Identical Queries In-Reply-To: <45E73DA5.40808@callone.net> Message-ID: <20070301142004.J53183@megazone.bigpanda.com> References: <45E6F49D.3010707@callone.net> <20070301112948.R45862@megazone.bigpanda.com> <45E73DA5.40808@callone.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.074 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200703/27 X-Sequence-Number: 23432 On Thu, 1 Mar 2007, Rob Schall wrote: > There are 4 entries (wanted to make the playing field level for this > test). There are 2 with true for istf and 2 with false. Then analyzing might help, because I think it's estimating many more rows for both cases, and with 2 rows estimated to be returned the nested loop should seem a lot more attractive than at 900+.