Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 840F59FA492 for ; Sun, 26 Nov 2006 10:31:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 73556-04 for ; Sun, 26 Nov 2006 10:31:15 -0400 (AST) X-Greylist: delayed 00:06:39.947669 by SQLgrey-1.7.4 Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by postgresql.org (Postfix) with SMTP id 978879FA48B for ; Sun, 26 Nov 2006 10:31:20 -0400 (AST) Received: (qmail 73100 invoked from network); 26 Nov 2006 14:24:39 -0000 Received: from unknown (HELO ?192.168.1.197?) (rodtaylor@rogers.com@74.100.134.181 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 26 Nov 2006 14:24:38 -0000 X-YMail-OSG: i3AHr9wVM1kWDEWzMcbSxVwA4d31V3arpO3OsXuDaR0kQq1xwLrNJqEfVi_o5ND3DRp9n.1uJfp.UwRQ3BR31_g7bHRUCvQcBlVpiRyh2pBv8mF4_dBJbA-- In-Reply-To: <20061126131147.GA4089@uio.no> References: <1164540257.7902.0.camel@panoramix> <20061126131147.GA4089@uio.no> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <195C9B6B-2018-474C-AA80-239A8CEA37E9@gmail.com> Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Rod Taylor Subject: Re: When to vacuum a table? Date: Sun, 26 Nov 2006 09:24:29 -0500 To: Steinar H. Gunderson X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/221 X-Sequence-Number: 21991 On 26-Nov-06, at 8:11 AM, Steinar H. Gunderson wrote: > On Sun, Nov 26, 2006 at 09:43:11AM -0300, Marcelo Costa wrote: >> All its tables constantly manipulated (INSERT, UPDATE, DELETE) >> they need a >> VACUUM > > Just a minor clarification here: INSERT does not create dead rows, > only > UPDATE and DELETE do. Thus, if you only insert rows, you do not > need to > vacuum (although you probably need to analyze). Not entirely true. An insert & rollback will create dead rows. If you attempt and fail a large number of insert transactions then you will still need to vacuum.