From: Ellen Cyran <ellen@urban.csuohio.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: After how many updates should a vacuum be performed?
Date: Wed, 13 Sep 2006 12:06:27 -0400
Message-ID: <45082C83.5040206@urban.csuohio.edu> (raw)
We have a database that periodically we perform large updates, around
a million records, after that the vacuum will run for 12 hours without
completing. After that, I typically remove the 2 indexes and 1
constraint on the largest table, 7 million records, and the vacuum will
complete in a couple of hours and the indexes can be recreated in a half
hour.
After how many updates should a vacuum be performed? Do indexes need to
be recreated periodically? Would auto vacuuming help in this case? Any
suggestions on tuning?
The database is in PostgreSQL 8.0.7.
Thanks.
Ellen
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ellen@urban.csuohio.edu
Subject: Re: After how many updates should a vacuum be performed?
In-Reply-To: <45082C83.5040206@urban.csuohio.edu>
References: <45082C83.5040206@urban.csuohio.edu>
* 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