Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2EED29FB1D4; Tue, 24 Apr 2007 23:07:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 98721-03-2; Tue, 24 Apr 2007 23:07:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by postgresql.org (Postfix) with ESMTP id 479899FB9B8; Tue, 24 Apr 2007 23:07:29 -0300 (ADT) Received: from new-host.home ([71.166.59.121]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JH1005QF786ELMM@vms046.mailsrvcs.net>; Tue, 24 Apr 2007 21:07:19 -0500 (CDT) Date: Tue, 24 Apr 2007 22:07:10 -0400 From: Robert Treat Subject: Re: row-level stats and last analyze time In-reply-to: <1177450739.16415.249.camel@localhost.localdomain> To: pgsql-docs@postgresql.org Cc: Neil Conway , Guillaume Lelarge , pgsql-hackers , Tom Lane Message-id: <200704242207.11093.xzilla@users.sourceforge.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-15 Content-transfer-encoding: 7bit Content-disposition: inline References: <462B6CEB.4010109@lelarge.info> <1177450739.16415.249.camel@localhost.localdomain> User-Agent: KMail/1.9.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/30 X-Sequence-Number: 4226 On Tuesday 24 April 2007 17:38, Neil Conway wrote: > [ CC'ing -hackers ] > > On Sun, 2007-04-22 at 16:10 +0200, Guillaume Lelarge wrote: > > This patch adds a sentence on monitoring.sgml explaining that > > stats_row_level needs to be enabled if user wants to get last > > vacuum/analyze execution time. > > This behavior was introduced in r1.120 of postmaster/pgstat.c: > > Modify pgstats code to reduce performance penalties from > oversized stats data files: avoid creating stats > hashtable entries for tables that aren't being touched > except by vacuum/analyze [...] > > which included other modifications to reduce the pgstat I/O volume in > 8.1. I don't think this particular change was wise: the reduction in > pgstat volume is pretty marginal, and it is counter-intuitive for > stats_row_level to effect whether the last ANALYZE / VACUUM is recorded. > (Plus, the optimization is not even enabled with the default > postgresql.conf settings.) > +1 -- Robert Treat Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL