VACUUM ANALYZE--how often?

From: jboes(at)nexcerpt(dot)com (Jeff Boes)
To: pgsql-admin(at)postgresql(dot)org
Subject: VACUUM ANALYZE--how often?
Date: 2002-01-15 16:15:16
Message-ID: d40a65a1.0201150815.c29c95a@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Our database has about 70 tables. Only a half-dozen or so have more
than 100K rows, and all of these change (99% inserts, 10K-50K rows)
during an average day.

VACUUM ANALYZE takes over an hour, and it's edging up by a couple
minutes per day.

Is there a way to look at the DEBUG stats from the VACUUM command
(written to the postmaster log) to determine what the optimum interval
would be between VACUUMs? (Perhaps I could do three of the "big"
tables on odd-numbered days, and the rest on even-numbered days?)

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jean-Christophe ARNU 2002-01-15 16:45:29 Fine tuning mem sort, shared buffer
Previous Message Randall Shutt 2002-01-15 15:37:18 Re: HELP: language option software package not installed