pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: ivan.hou <ivan.hou@msa.hinet.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: about the performance of autovacuum and vacuumdb?
Date: Thu, 20 Dec 2007 16:13:28 -0600
Message-ID: <dcc563d10712201413obadbba8xf02e143fa4da959f@mail.gmail.com> (raw)
In-Reply-To: <14431704.post@talk.nabble.com>
References: <14431704.post@talk.nabble.com>

On Dec 20, 2007 12:50 AM, ivan.hou <ivan.hou@msa.hinet.net> wrote:
>
> i try to compare two methods of garbage-collect.(Postgresql Ver:8.1.3)
>
> 1. enable autovacuum without using vacuumdb -f mydb in crontab.
> 2. using crontab to vacuumdb in every 10 min (autovacuum disable)
>
> the method 2 got more free space than method 1.
>
> the disk size of database still  increased in method 1.
> so, what's the advantage of autovacuum?

That really depends.  Did the db size increase at first under method
1, then reach a steady state, or did it just keep bloating.  It might
well be that vacuuming every 10 minutes cost you more in terms of
performance than would using autovacuum, and the trade off was
slightly more disk space used.  Or it could be the db was bloating.
If the db was bloating, as Alvaro mentioned, you likely don't have
aggressive enough settings for autovacuum.

Also, update your pg install to the latest 8.1.x version, 8.1.3 has
quite a few nasty bugs in it.



view thread (4+ messages)

Message-ID: <dcc563d10712201413obadbba8xf02e143fa4da959f@mail.gmail.com>
Permalink:  ../dcc563d10712201413obadbba8xf02e143fa4da959f@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10712201413obadbba8xf02e143fa4da959f@mail.gmail.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-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, ivan.hou@msa.hinet.net
  Subject: Re: about the performance of autovacuum and vacuumdb?
  In-Reply-To: <dcc563d10712201413obadbba8xf02e143fa4da959f@mail.gmail.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