Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CDB5F9F9DAD for ; Thu, 30 Nov 2006 11:11:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 38417-02 for ; Thu, 30 Nov 2006 11:10:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by postgresql.org (Postfix) with ESMTP id E8C3B9FA18B for ; Thu, 30 Nov 2006 11:10:56 -0400 (AST) Received: from ppp247-71.static.internode.on.net (HELO [192.168.8.200]) ([203.122.247.71]) by ipmail02.adl2.internode.on.net with ESMTP; 01 Dec 2006 01:40:54 +1030 X-IronPort-AV: i="4.09,480,1157293800"; d="scan'208"; a="53711226:sNHT54601981" Message-ID: <456EF47D.1010800@007Marketing.com> Date: Fri, 01 Dec 2006 01:40:53 +1030 From: Shane Ambler User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Ezequias Rodrigues da Rocha , pgsql-sql@postgresql.org, alvherre@commandprompt.com Subject: Re: Autovaccum References: <55c095e90611300602n18fa7e8v8e985386f74afba1@mail.gmail.com> <20061130142406.GH15105@alvh.no-ip.org> In-Reply-To: <20061130142406.GH15105@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/293 X-Sequence-Number: 26945 Alvaro Herrera wrote: > Ezequias Rodrigues da Rocha wrote: >> Hi list, >> >> I would like to know if it is necessary to set my database to >> autovaccum if the intent of my DB Manager is do not make any deletion >> in any time. >> >> If there is no deletions why autovaccum ok ? > > You need to vacuum from time to time anyway, even if you don't delete > anything. The easiest way to do it is let autovacuum do it for you. > One thing that vacuum/autovacuum does is mark space used by deleted rows to be reused. Without deletes this won't be necessary in table data files. But when you update a record an index may also be updated and have the same effect within the index storage space. There are other things that vacuum does to keep your database running optimally. One is to update planner statistics about how many rows are in each table which effects the query planning and optimizing. Without deletes a plain vacuum won't achieve a great deal, but a regular VACUUM ANALYZE (as done by autovacuum) will make a difference to the performance of your database. If no data in your db changes then you won't have to bother vacuuming. -- Shane Ambler pgSQL@007Marketing.com Get Sheeky @ http://Sheeky.Biz