X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 221D2329E76 for ; Sun, 19 Sep 2004 19:57:38 +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 81191-04 for ; Sun, 19 Sep 2004 18:57:32 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 96F73329E73 for ; Sun, 19 Sep 2004 19:57:33 +0100 (BST) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6377718; Sun, 19 Sep 2004 11:58:49 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: Stephen Crowley , pgsql-performance@postgresql.org Subject: Re: Large # of rows in query extremely slow, not using Date: Fri, 17 Sep 2004 10:40:18 -0700 User-Agent: KMail/1.6.2 References: <3f71fdf104091317515c756512@mail.gmail.com> <3f71fdf1040916185113e277e6@mail.gmail.com> In-Reply-To: <3f71fdf1040916185113e277e6@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409171040.18830.josh@agliodbs.com> 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/201 X-Sequence-Number: 8329 Stephen, > " -> Seq Scan on island_history (cost=0.00..417867.13 rows=292274 > width=83) (actual time=346759.000..346759.000 rows=10 loops=1)" Take a look at your row comparisons. When was the last time you ran ANALYZE? -- Josh Berkus Aglio Database Solutions San Francisco