Discussion:
[ADMIN] Vacuuming
(too old to reply)
Philip Edelbrock
2012-02-23 00:08:01 UTC
Permalink
We're having a problem with database maintenance. If we do a full vacuum, it takes down the app until it completes (which is a bit to be expected as a full vacuum locked the app out of the database). However, if we don't do a periodic full vacuum, our drive gets filled up.

The question is, is there a way to keep availability of the app 100% yet keep the database maintained without the drive filling up? Or is it just the nature of the beast that a full vacuum needs to be done periodically?

BTW- This is PostgreSQL 8.1.23 as part of RHEL 5.6.

Thanks, any tips on good practices for cron scripts doing Postgres maintenance would be great!


Phil
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Rick Dicaire
2012-02-23 00:20:41 UTC
Permalink
On Wed, Feb 22, 2012 at 7:08 PM, Philip Edelbrock
The question is, is there a way to keep availability of the app 100% yet keep the database maintained without the drive filling up?  Or is it just the nature of the beast that a full vacuum needs to be done periodically?
Short answer, no.

Are you doing ANY vacuuming on this database?
BTW- This is PostgreSQL 8.1.23 as part of RHEL 5.6.
Thanks, any tips on good practices for cron scripts doing Postgres maintenance would be great!
I have a client using this same version, and they use a number of
scripts in cron to vacuum various tables
that get modified at a high rate. Based on the clients needs, they're
vacuuming every ten minutes.
Note they're not doing VACUUM FULL.
Your mileage may vary, and you'll need to determine what best fits your needs.

Moving to postgres 9 would help alleviate some of your performance and
maintenance issues.
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Loading...