Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 633B99FB51F; Tue, 24 Apr 2007 18:37:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 90697-04; Tue, 24 Apr 2007 18:36:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mailbox.samurai.com (mailbox.samurai.com [205.207.28.82]) by postgresql.org (Postfix) with ESMTP id A280D9FA4DB; Tue, 24 Apr 2007 18:36:56 -0300 (ADT) Received: from localhost (mailbox.samurai.com [205.207.28.82]) by mailbox.samurai.com (Postfix) with ESMTP id 9E33661D05; Tue, 24 Apr 2007 17:36:55 -0400 (EDT) X-Virus-Scanned: by amavisd-new at mailbox.samurai.com Received: from mailbox.samurai.com ([205.207.28.82]) by localhost (mailbox.samurai.com [205.207.28.82]) (amavisd-new, port 10024) with LMTP id R7O+M0QDszHw; Tue, 24 Apr 2007 17:36:54 -0400 (EDT) Received: from [192.168.1.101] (d226-84-131.home.cgocable.net [24.226.84.131]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mailbox.samurai.com (Postfix) with ESMTP id 33C6B61CFD; Tue, 24 Apr 2007 17:36:54 -0400 (EDT) Subject: row-level stats and last analyze time From: Neil Conway To: Guillaume Lelarge Cc: pgsql-docs@postgresql.org, pgsql-hackers , Tom Lane In-Reply-To: <462B6CEB.4010109@lelarge.info> References: <462B6CEB.4010109@lelarge.info> Content-Type: text/plain Date: Tue, 24 Apr 2007 17:38:59 -0400 Message-Id: <1177450739.16415.249.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/29 X-Sequence-Number: 4225 [ 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.) -Neil