Unix Technical Forum

When to vacuum a table?

This is a discussion on When to vacuum a table? within the Pgsql Performance forums, part of the PostgreSQL category; --> >>> On Sun, Nov 26, 2006 at 5:24 AM, in message <1164540257.7902.0.camel@panoramix>, Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl> wrote: > > Are ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-19-2008, 09:47 AM
Kevin Grittner
 
Posts: n/a
Default Re: When to vacuum a table?

>>> On Sun, Nov 26, 2006 at 5:24 AM, in message
<1164540257.7902.0.camel@panoramix>, Joost Kraaijeveld
<J.Kraaijeveld@Askesis.nl> wrote:
>
> Are there guidelines (or any empirical data) available how to

determine
> how often a table should be vacuumed for optimum performance or is

this
> an experience / trial- and- error thing?


For most of our databases we use a daily "VACUUM ANALYZE VERBOSE;". We
grep the results to show large numbers of removable or dead rows and to
show the fsm numbers at the end. There are a few small tables with high
update rates which this doesn't cover. To handle that we set the
autovacuum to 0.2/0.1 and 1/1 on a ten second interval and do a daily
CLUSTER of these tables. We really don't have many tables which can hit
these autovacuum thresholds in one day.

We have databases which are 400 GB with the vast majority of that being
in tables which are insert-only except for a weekly purge of data over a
year old. We do nightly vacuums on the few tables with update/delete
activity, and a weekly vacuum of the whole database -- right after the
delete of old rows from the big tables.

-Kevin



---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com