Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7EHwYP55620 for ; Tue, 14 Aug 2001 13:58:35 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f7EHwWY19456; Tue, 14 Aug 2001 13:58:32 -0400 (EDT) To: matthew.copeland@honeywell.com cc: PostgreSqlAdmin Subject: Re: ever growing pkey files In-reply-to: References: Comments: In-reply-to matthew.copeland@honeywell.com message dated "Tue, 14 Aug 2001 14:50:01 -0000" Date: Tue, 14 Aug 2001 13:58:31 -0400 Message-ID: <19453.997811911@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200108/46 X-Sequence-Number: 1981 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