From: Tom Lane <tgl@sss.pgh.pa.us>
To: matthew.copeland@honeywell.com
Cc: PostgreSqlAdmin <pgsql-admin@postgresql.org>
Subject: Re: ever growing pkey files
Date: Tue, 14 Aug 2001 13:58:31 -0400
Message-ID: <19453.997811911@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0108141433300.1141-100000@fisb.gaa.aro.allied.com>
References: <Pine.LNX.4.21.0108141433300.1141-100000@fisb.gaa.aro.allied.com>
matthew.copeland@honeywell.com writes:
> I have a database that has two tables. One of the tables gets changed
> very often. (like every 5 minutes). The values that where in the table
> are replaced with a new set of values with new unique keys. Now, I vacuum
> these tables fairly often, but the pkey files for these tables never seem
> to get smaller. They just keep growing. What do I have to do to make the
> pkey files flush there extra blocks?
Yeah, VACUUM doesn't shrink indexes presently (it's on the TODO
list...).
> PostgreSQL version 7.0.3 running under Linux.
You could try REINDEX to rebuild the indexes, but I'd recommend updating
to 7.1.2 (or soon, 7.1.3) first. I don't recall whether REINDEX is
available/trustworthy in 7.0.
A grottier solution is to DROP and re-CREATE the indexes.
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, matthew.copeland@honeywell.com
Subject: Re: ever growing pkey files
In-Reply-To: <19453.997811911@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0108141433300.1141-100000@fisb.gaa.aro.allied.com> <19453.997811911@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