pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shane Ambler <pgsql@007Marketing.com>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: pgsql-sql@postgresql.org
To: alvherre@commandprompt.com
Subject: Re: Autovaccum
Date: Fri, 01 Dec 2006 01:40:53 +1030
Message-ID: <456EF47D.1010800@007Marketing.com> (raw)
In-Reply-To: <20061130142406.GH15105@alvh.no-ip.org>
References: <55c095e90611300602n18fa7e8v8e985386f74afba1@mail.gmail.com>
	<20061130142406.GH15105@alvh.no-ip.org>

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



view thread (9+ messages)  latest in thread

Message-ID: <456EF47D.1010800@007Marketing.com>
Permalink:  ../456EF47D.1010800@007Marketing.com/
Also on:    postgresql.org/message-id/456EF47D.1010800@007Marketing.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgsql@007Marketing.com, ezequias.rocha@gmail.com, alvherre@commandprompt.com
  Subject: Re: Autovaccum
  In-Reply-To: <456EF47D.1010800@007Marketing.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox