Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 378489FB2C1 for ; Thu, 18 Jan 2007 14:37:59 -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 57208-02 for ; Thu, 18 Jan 2007 14:37:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by postgresql.org (Postfix) with ESMTP id 14DE29FB28E for ; Thu, 18 Jan 2007 14:37:55 -0400 (AST) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 85FFF83C25 for ; Thu, 18 Jan 2007 13:37:54 -0500 (EST) Received: from web2.messagingengine.com ([10.202.2.211]) by out1.internal (MEProxy); Thu, 18 Jan 2007 13:37:54 -0500 Received: by web2.messagingengine.com (Postfix, from userid 99) id 6A68B29CD7; Thu, 18 Jan 2007 13:37:54 -0500 (EST) Message-Id: <1169145474.20103.1169962769@webmail.messagingengine.com> X-Sasl-Enc: aWHi3fxcc/V0siOdlGjxygj/6x6hn8fquqDRp2kXfSh3 1169145474 From: "Jeremy Haile" To: pgsql-performance@postgresql.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Subject: Autoanalyze settings with zero scale factor Date: Thu, 18 Jan 2007 13:37:54 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/314 X-Sequence-Number: 22915 Some of my very large tables (10 million rows) need to be analyzed by autovacuum on a frequent basis. Rather than specifying this as a percentage of table size + base threshold, I wanted to specify it as an explicit number of rows. I changed the table-specific settings so that the ANALYZE base threshold was 5000 and the ANALYZE scale factor is 0. According to the documented formula: analyze threshold = analyze base threshold + analyze scale factor * number of tuples, I assumed that this would cause the table to be analyzed everytime 5000 tuples were inserted/updated/deleted. However, the tables have been updated with tens of thousands of inserts and the table has still not been analyzed (according to pg_stat_user_tables). Does a scale factor of 0 cause the table to never be analyzed? What am I doing wrong? I'm using PG 8.2.1. Thanks, Jeremy Haile