X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 53AC29DC80C for ; Thu, 26 Jan 2006 16:23:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95595-06 for ; Thu, 26 Jan 2006 16:23:45 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from snappy.tocr.com (snappy.tocr.com [64.34.164.72]) by postgresql.org (Postfix) with ESMTP id 7FC229DC809 for ; Thu, 26 Jan 2006 16:23:42 -0400 (AST) Received: by snappy.tocr.com (Postfix, from userid 48) id 3CE029500EF; Thu, 26 Jan 2006 14:35:42 -0500 (EST) Received: from 71.40.140.99 (SquirrelMail authenticated user matthew) by mail.tocr.com with HTTP; Thu, 26 Jan 2006 14:35:42 -0500 (EST) Message-ID: <5071.71.40.140.99.1138304142.squirrel@mail.tocr.com> In-Reply-To: <002a01c622ac$41555af0$1f12fea9@homisco.local> References: <002a01c622ac$41555af0$1f12fea9@homisco.local> Date: Thu, 26 Jan 2006 14:35:42 -0500 (EST) Subject: Re: VACUUM Question From: "Matthew T. O'Connor" To: "Oisin Glynn" Cc: "pgsql general" User-Agent: SquirrelMail/1.4.4-1.FC2.2.legacy MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/1390 X-Sequence-Number: 90335 If you really are just inserting, and never updating or deleting, then you will never need to vacuum the table, rather you will just need to ANALYSE the table. If you use autovacuum that is exactly what it will do. As for Reindex, I'm not entirely sure, I don't think you would benefit from reindex because you aren't updating or deleting. Can anyone comment on this? Is is possibile that a table with lots of inserts resulting in lots of page splits etc could ever benifit form REINDEX? Matt > We have 2 tables we expect to grow by up to 50,000 rows per day each > depending on the customer. In normal operation we will most likely never > update or delete from these tables as they are for historical reporting. > (Eventually we may but a limit on the amount of data and delete older than > X months or such) > We intend to create a number of indexes based upon the reporting search > criteria. > > What would the best setup be for VACUUM, ANALYSE, REINDEX. Alot of the > infor refers to data hanging around from deletes and updates which in > normal course we will not do on these tables? > > > Oisin >