Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 51AFC9FA456 for ; Tue, 17 Apr 2007 22:45:50 -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 61295-05 for ; Tue, 17 Apr 2007 22:45:42 -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 2C8789FA2AE for ; Tue, 17 Apr 2007 22:45:41 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-221-161.bk12-dsl.surnet.cl [201.221.221.161]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l3I1jXK0003503; Tue, 17 Apr 2007 18:45:35 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AD0D632A0C; Tue, 17 Apr 2007 21:45:27 -0400 (CLT) Date: Tue, 17 Apr 2007 21:45:27 -0400 From: Alvaro Herrera To: Tom Lane , Simon Riggs , pgsql-patches@postgresql.org Subject: Re: log_autovacuum Message-ID: <20070418014527.GA19186@alvh.no-ip.org> Mail-Followup-To: Tom Lane , Simon Riggs , pgsql-patches@postgresql.org References: <1173378696.3641.162.camel@silverbirch.site> <20070417180633.GA15495@alvh.no-ip.org> <1176834315.3635.414.camel@silverbirch.site> <20070417184550.GC15495@alvh.no-ip.org> <20070417151004.f59498b0.wmoran@collaborativefusion.com> <9363.1176841144@sss.pgh.pa.us> <20070417204049.GD15495@alvh.no-ip.org> <20070417221804.GH15495@alvh.no-ip.org> <15057.1176849146@sss.pgh.pa.us> <20070417225749.GJ15495@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070417225749.GJ15495@alvh.no-ip.org> 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, 17 Apr 2007 18:45:35 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/423 X-Sequence-Number: 1990 Alvaro Herrera wrote: > Seems fair. Updated patch attached. > > If there are no further comments, I'll add some docs and apply it later. If autovacuum_vacuum_cost_delay is set to 20, my pitiful desktop system takes 8.4 seconds to analyze a 8000 page table: DEBUG: "bar": scanned 3000 of 8811 pages, containing 681000 live rows and 0 dead rows; 3000 rows in sample, 2000097 estimated total rows LOG: automatic analyze of table "alvherre.public.bar" system usage: CPU 0.00s/0.01u sec elapsed 8.39 sec So I guess logging on ANALYZE is not that removed from reality. I also think we should remove these DEBUG messages, that are now useless: DEBUG: autovac: will ANALYZE bar -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.