pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Max Baker <max@warped.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Vacuum takes a really long time, vacuum full required
Date: Tue, 19 Oct 2004 12:21:04 -0400
Message-ID: <16629.1098202864@sss.pgh.pa.us> (raw)
In-Reply-To: <20041019153821.GA21258@warped.org>
References: <20041019153821.GA21258@warped.org>

Max Baker <max@warped.org> writes:
> I've been having problems maintaining the speed of the database in the
> long run.  VACUUMs of the main tables happen a few times a day after maybe
> 50,000 or less rows are added and deleted (say 6 times a day).

> I have a whole lot (probably too much) indexing going on to try to speed
> things up. 

> Whatever the case, the database still slows down to a halt after a month or
> so, and I have to go in and shut everything down and do a VACUUM FULL by
> hand.  One index (of many many) takes 2000 seconds to vacuum.  The whole
> process takes a few hours.

The first and foremost recommendation is to increase your FSM settings;
you seem to be using the defaults, which are pegged for a database size
of not more than about 100Mb.

Second is to update to PG 7.4.  I think you are probably suffering from
index bloat to some extent, and 7.4 should help.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <16629.1098202864@sss.pgh.pa.us>
Permalink:  ../16629.1098202864@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16629.1098202864@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, max@warped.org
  Subject: Re: Vacuum takes a really long time, vacuum full required
  In-Reply-To: <16629.1098202864@sss.pgh.pa.us>

* 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