Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 16E1A9FB535 for ; Wed, 18 Apr 2007 04:18:57 -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 30236-04 for ; Wed, 18 Apr 2007 04:18:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 1FEAC9FB4D6 for ; Wed, 18 Apr 2007 04:18:51 -0300 (ADT) thread-index: AceBidmNdXH5AQCNSXCtNtgoxx3FnQ== Received: from [192.168.0.22] ([85.211.22.118]) by mail01.enterprisedb.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 18 Apr 2007 03:19:05 -0400 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 Subject: Re: log_autovacuum From: "Simon Riggs" To: "Alvaro Herrera" Cc: "Tom Lane" , In-Reply-To: <20070418014527.GA19186@alvh.no-ip.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> <20070418014527.GA19186@alvh.no-ip.org> Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 18 Apr 2007 08:14:42 +0100 Message-ID: <1176880483.3635.561.camel@silverbirch.site> MIME-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Apr 2007 07:19:06.0125 (UTC) FILETIME=[D966E3D0:01C78189] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/426 X-Sequence-Number: 1993 On Tue, 2007-04-17 at 21:45 -0400, Alvaro Herrera wrote: > 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 Looks good. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com