Re: Performance Problems

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Warren <warren(at)clarksnutrition(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Performance Problems
Date: 2006-02-20 20:38:08
Message-ID: 1140467887.4195.1.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2006-02-20 at 14:12, Warren wrote:
> I have one table that gets slower and slower over time. It has a lot of
> UPDATES INSERTS and DELETES run on it. It may have as many as 20,000 rows at
> any given time. I am running autovacuum using the following command line:
>
> /usr/local/pgsql/bin/pg_autovacuum -D -s -S -L
> /usr/local/pgsql/log/autovacuum -U postgres -P password -H 127.0.0.1 -p 5432
>
> It does speed back up after I do a full vacuum on it. What can I do to keep
> the performance consistent.

You likely don't have high enough FSM settings.

Run your database for a while (24 hours or so) without running a vacuum
full. Regular vacuums are fine.

Then, by hand, run vacuum verbose and it will tell you how many extra
pages / slots you need.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2006-02-20 22:30:06 Re: Mixing different LC_COLLATE and database encodings
Previous Message Matthew T. O'Connor 2006-02-20 20:37:54 Re: Performance Problems