Received: from megazone.bigpanda.com ([63.150.15.178]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fATIdfm89918 for ; Thu, 29 Nov 2001 13:39:42 -0500 (EST) (envelope-from sszabo@megazone23.bigpanda.com) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 8C16ED5EB; Thu, 29 Nov 2001 10:39:41 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 81BAF5BED; Thu, 29 Nov 2001 10:39:41 -0800 (PST) Date: Thu, 29 Nov 2001 10:39:41 -0800 (PST) From: Stephan Szabo To: bangh Cc: "Leong, Fushan" , Subject: Re: Vaccum In-Reply-To: <3C067D89.F07D833F@baileylink.net> Message-ID: <20011129103838.Y44666-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200111/178 X-Sequence-Number: 2703 On Thu, 29 Nov 2001, bangh wrote: > HI, > > This is not necessary true, but you might feel understandable. > > To delete records, just seems as the records are marked as voided. Space is not > collected. To run vaccum might do this kind space garbage collection. > > To run vacummdb really save the space, but it works at only some extent. e.g. > index still goes quickly, it goes bigger and bigger, one day it eats all your > space you have, behaves as gets a virus. In this case, my solution is to use > pg_dump the original one, create new one and restory, this reaaly save your > space, but you cannot do this as frequently as you do "vacuum". It costs much > more CPU time to do it if your database is huge. I think REINDEX or just DROP INDEX/CREATE INDEX should do the same thing without requiring the dump/restore.