pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Jaime Casanova <systemguards@gmail.com>
Cc: Szabolcs BALLA <szabolcs.balla@confinsystems.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum is needed or not?
Date: Fri, 13 Jan 2006 13:18:47 -0600
Message-ID: <20060113191847.GK9017@pervasive.com> (raw)
In-Reply-To: <c2d9e70e0601122021l5a78b50fxc7e686f89c89007d@mail.gmail.com>
References: <1136463798.4221.35.camel@bh>
	<c2d9e70e0601122021l5a78b50fxc7e686f89c89007d@mail.gmail.com>

On Thu, Jan 12, 2006 at 11:21:19PM -0500, Jaime Casanova wrote:
> On 1/5/06, Szabolcs BALLA <szabolcs.balla@confinsystems.com> wrote:
> > Hi,
> >
> > How do I know vacuum is need or not? I mean, are there any query to know
> > status of statistics, tables, indexes, etc?
> 
> at least, once every billion transactions to be safe...
> 
> > (7.4.7)
> > Our database size bigger than just go and do it. :(
> >
> 
> ahh... then execute it once a week or once a day, for avoid excessive growing...

Even once a day can be awefully conservative for many databases. Keep in
mind that every single row that is updated or deleted will hang around
in the database until you vacuum; on a busy system that can result in a
lot of wasted space. And once the bloat is there, it can be hard to get
rid of.

7.4.7 has contrib/pg_autovacuum, and I highly recommend it. Also,
http://lnk.nu/pervasive-postgres.com/7m4.asp and
http://lnk.nu/pervasive-postgres.com/7jd.asp might be interesting reads
for you.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (7+ messages)

Message-ID: <20060113191847.GK9017@pervasive.com>
Permalink:  ../20060113191847.GK9017@pervasive.com/
Also on:    postgresql.org/message-id/20060113191847.GK9017@pervasive.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, systemguards@gmail.com, szabolcs.balla@confinsystems.com
  Subject: Re: Vacuum is needed or not?
  In-Reply-To: <20060113191847.GK9017@pervasive.com>
  References: <1136463798.4221.35.camel@bh> <c2d9e70e0601122021l5a78b50fxc7e686f89c89007d@mail.gmail.com> <20060113191847.GK9017@pervasive.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