From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ellen Cyran <ellen@urban.csuohio.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: After how many updates should a vacuum be performed?
Date: Wed, 13 Sep 2006 12:19:09 -0400
Message-ID: <12738.1158164349@sss.pgh.pa.us> (raw)
In-Reply-To: <45082C83.5040206@urban.csuohio.edu>
References: <45082C83.5040206@urban.csuohio.edu>
Ellen Cyran <ellen@urban.csuohio.edu> writes:
> 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.
By "vacuum" do you mean VACUUM FULL? My advice is not to use that,
just plain VACUUM. Don't forget to make sure your FSM is large enough,
too.
regards, tom lane
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: tgl@sss.pgh.pa.us, ellen@urban.csuohio.edu
Subject: Re: After how many updates should a vacuum be performed?
In-Reply-To: <12738.1158164349@sss.pgh.pa.us>
References: <45082C83.5040206@urban.csuohio.edu> <12738.1158164349@sss.pgh.pa.us>
* 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