Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 10FCF9FBD6B for ; Thu, 8 Mar 2007 14:03:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 26202-02 for ; Thu, 8 Mar 2007 14:03:46 -0400 (AST) 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 445319FBD6A for ; Thu, 8 Mar 2007 14:03:45 -0400 (AST) Received: from freebsd4.homenet.dbitech.bc.ca (S010600a08330057a.ok.shawcable.net [24.67.72.171] (may be forged)) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l28I3Vob023691; Thu, 8 Mar 2007 10:03:31 -0800 From: Darcy Buskermolen Organization: CommandPrompt, Inc To: pgsql-patches@postgresql.org Subject: Re: log_autovacuum Date: Thu, 8 Mar 2007 10:03:23 -0800 User-Agent: KMail/1.8.3 Cc: Alvaro Herrera , Simon Riggs References: <1173369949.3641.132.camel@silverbirch.site> <20070308175330.GW4715@alvh.no-ip.org> In-Reply-To: <20070308175330.GW4715@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703081003.24151.darcyb@commandprompt.com> 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]); Thu, 08 Mar 2007 10:03:31 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.238 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/130 X-Sequence-Number: 1140 On March 8, 2007 09:53 am, Alvaro Herrera wrote: > Simon Riggs wrote: > > log_autovacuum = on produces a single line of output from autovacuum, > > with additional useful stats. Patch is proving useful in performance > > testing. Not sure what is intended on logging for 8.3.... > > > > LOG: autovac "public.w" scans:1 pages:197(-0) tuples:2338(-7199) CPU > > 0.00s/0.00u sec elapsed 0.39 sec > > LOG: autovac "public.s" scans:1 pages:1926746(-0) > > tuples:37000611(-3461867) CPU 99.74s/53.37u sec elapsed 7977.20 sec > > I agree something like this is useful, but I'd try to get rid of cryptic > notation, and maybe split in several message categories if reasonable. > > Your proposal is > > LOG: autovac "public.w" scans:1 pages:197(-0) tuples:2338(-7199) CPU > 0.00s/0.00u sec elapsed 0.39 sec > > This looks too much like the old VACUUM VERBOSE reporting, which was > awful. Maybe something like this is better: > > LOG: index passes: 1 pages: removed 0, 197 remain tuples: removed 7199, > 2338 remain CPU usage: whatever CONTEXT: Automatic vacuuming of table > "database.public.w" > > This looks like the sort of thing comparable to picking a bikeshed color > though :-( > > Keep in mind that it's going to be translated, so it's not useful for > machine parsing anyway. This goes back to the request for vacuum loging to a table.. -- Darcy Buskermolen Command Prompt, Inc. Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 PostgreSQL solutions since 1997 http://www.commandprompt.com/