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 A246ED1B175 for ; Thu, 10 Jun 2004 00:37:03 -0300 (ADT) 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 87560-07 for ; Thu, 10 Jun 2004 03:37:02 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id BF3D2D1B16D for ; Thu, 10 Jun 2004 00:36:58 -0300 (ADT) Received: from commandprompt.com (clbb-248.saw.net [64.146.135.248]) (authenticated) by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id i5A3ago08380; Wed, 9 Jun 2004 20:36:42 -0700 Message-ID: <40C7D63A.7050707@commandprompt.com> Date: Wed, 09 Jun 2004 20:32:10 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Kirkwood Cc: Rod Taylor , Christopher Kings-Lynne , ken , Postgresql Performance Subject: Re: Index oddity References: <1086809460.32077.246.camel@pesky> <1086811930.2539.90.camel@jester> <1086814209.32077.252.camel@pesky> <1086814597.2539.92.camel@jester> <1086814928.32077.259.camel@pesky> <1086816543.2539.98.camel@jester> <1086822662.32077.278.camel@pesky> <40C7BD2A.70604@familyhealth.com.au> <1086833876.2539.156.camel@jester> <40C7D0C1.5040504@coretech.co.nz> In-Reply-To: <40C7D0C1.5040504@coretech.co.nz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: 200406/110 X-Sequence-Number: 7168 >> > ANALYZE might be producing poor stats due to : > > i) many dead tuples or > ii) high proportion of dead tuples in the first few pages of the table > > Does a VACUUM FULL followed by ANALYZE change the estimates (or have > you tried this already)? > > (p.s. - I probably don't qualify for the 'more knowledge' bit either...) You can also increase your statistics_target which will make ANALYZE take longer but can help a great deal with larger data sets. Sincerely, Joshua D. Drake > > regards > > Mark > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com PostgreSQL Replicator -- production quality replication for PostgreSQL