Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5A3119FBA94 for ; Tue, 12 Jun 2007 13:08:24 -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 29762-01 for ; Tue, 12 Jun 2007 13:08:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 9EB399FBA4B for ; Tue, 12 Jun 2007 13:08:15 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-216-144.bk12-dsl.surnet.cl [201.221.216.144]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l5CG85Ev006698; Tue, 12 Jun 2007 09:08:08 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7EF4C32A28; Tue, 12 Jun 2007 12:08:02 -0400 (CLT) Date: Tue, 12 Jun 2007 12:08:02 -0400 From: Alvaro Herrera To: Sabin Coanda Cc: pgsql-performance@postgresql.org Subject: Re: VACUUM vs auto-vacuum daemon Message-ID: <20070612160802.GC15517@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 12 Jun 2007 09:08:08 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/215 X-Sequence-Number: 25248 Sabin Coanda wrote: > Hi there, > > Using explicitly VACUUM command give me the opportunity to fine tune my > VACUUM scheduling parameters, after I analyze the log generated by VACUUM > VERBOSE. > > On the other hand I'd like to use the auto-vacuum mechanism because of its > facilities. Unfortunately, after I made some initial estimations for > autovacuum_naptime, and I set the specific data into pg_autovacuum table, I > have not a feedback from the auto-vacuum mechanism to check that it works > well or not. It would be nice to have some kind of log similar with the one > generated by VACUUM VERBOSE. Is the auto-vacuum mechanism able to provide > such a useful log ? No, sorry, autovacuum is not currently very good regarding reporting its activities. It's a lot better in 8.3 but even there it doesn't report the full VACUUM VERBOSE log. It looks like this: LOG: automatic vacuum of table "alvherre.public.foo": index scans: 0 pages: 45 removed, 0 remain tuples: 10000 removed, 0 remain system usage: CPU 0.00s/0.00u sec elapsed 0.01 sec LOG: automatic analyze of table "alvherre.public.foo" system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.