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 AC0E59DC898 for ; Thu, 26 Jan 2006 18:04:03 -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 82492-09 for ; Thu, 26 Jan 2006 18:04:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id E8BEF9DC866 for ; Thu, 26 Jan 2006 18:04:00 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id DCC7830940; Thu, 26 Jan 2006 23:04:02 +0100 (MET) From: Chris Browne X-Newsgroups: pgsql.general Subject: Re: VACUUM Question Date: Thu, 26 Jan 2006 16:14:45 -0500 Organization: cbbrowne Computing Inc Lines: 24 Message-ID: <603bjan12y.fsf@dba2.int.libertyrms.com> References: <002a01c622ac$41555af0$1f12fea9@homisco.local> <5071.71.40.140.99.1138304142.squirrel@mail.tocr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux) Cancel-Lock: sha1:yqgrPvukXnf8ra9zpV6K1enM850= To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.245 required=5 tests=[AWL=0.245] X-Spam-Score: 0.245 X-Spam-Level: X-Archive-Number: 200601/1402 X-Sequence-Number: 90347 matthew@zeut.net ("Matthew T. O'Connor") writes: > 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. "Never" is a pretty long time... You need a VACUUM every 2^31 transactions, but since there needs to be such a vacuum for the whole database, that one 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? I could imagine a CLUSTER doing some good, and if that's the case, REINDEX could have some favorable results. But you'd better have a real specific model as to why that would be... -- let name="cbbrowne" and tld="ntlug.org" in name ^ "@" ^ tld;; http://cbbrowne.com/info/spreadsheets.html Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!