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 431AC9DC80C for ; Thu, 26 Jan 2006 17:41:47 -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 80594-08 for ; Thu, 26 Jan 2006 17:41:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 4EB359DC809 for ; Thu, 26 Jan 2006 17:41:43 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k0QLfWwj024594; Thu, 26 Jan 2006 16:41:32 -0500 (EST) To: Michael Fuhr cc: "Matthew T. O'Connor" , Oisin Glynn , pgsql general Subject: Re: VACUUM Question In-reply-to: <20060126204430.GA97564@winnie.fuhr.org> References: <002a01c622ac$41555af0$1f12fea9@homisco.local> <5071.71.40.140.99.1138304142.squirrel@mail.tocr.com> <20060126204430.GA97564@winnie.fuhr.org> Comments: In-reply-to Michael Fuhr message dated "Thu, 26 Jan 2006 13:44:30 -0700" Date: Thu, 26 Jan 2006 16:41:32 -0500 Message-ID: <24593.1138311692@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.1 required=5 tests=[AWL=0.100] X-Spam-Score: 0.1 X-Spam-Level: X-Archive-Number: 200601/1398 X-Sequence-Number: 90343 Michael Fuhr writes: > On Thu, Jan 26, 2006 at 02:35:42PM -0500, Matthew T. O'Connor wrote: >> 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. > That's not quite true; the table must still be vacuumed occasionally > to prevent transaction ID wraparound failure, Also, somebody made a real good point about rolled-back insertions. Even if the only command you ever apply to the table is INSERT, you could still have dead rows in the table if some of those transactions occasionally roll back. regards, tom lane