Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7CF029FB85A for ; Wed, 30 May 2007 13:59:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38165-03 for ; Wed, 30 May 2007 13:59:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 05D209FC00F for ; Wed, 30 May 2007 13:59:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l4UGxBqT005207; Wed, 30 May 2007 12:59:11 -0400 (EDT) To: "Tyrrill, Ed" cc: "Klint Gore" , pgsql-performance@postgresql.org Subject: Re: Very slow left outer join In-reply-to: References: <465CD94D319.E8C2KG@129.180.47.120> <26149.1180495108@sss.pgh.pa.us> Comments: In-reply-to "Tyrrill, Ed" message dated "Wed, 30 May 2007 09:55:10 -0700" Date: Wed, 30 May 2007 12:59:11 -0400 Message-ID: <5206.1180544351@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/624 X-Sequence-Number: 25014 "Tyrrill, Ed" writes: > I did a vacuum analyze after inserting all the data. Is there possibly > a bug in analyze in 8.1.5-6? I know it says rows=3D436915, but the last > time the backup_location table has had that little data in it was a > couple months ago, and analyze has been run many times since then. > Currently it has over 160 million rows. Possibly you need a larger statistics target for that table. regards, tom lane