X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 94F36D1DF83 for ; Thu, 29 Apr 2004 21:53:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57460-07 for ; Thu, 29 Apr 2004 21:53:22 -0300 (ADT) Received: from tupari.net (node-40242ac2.lga.onnet.us.uu.net [64.36.42.194]) by svr1.postgresql.org (Postfix) with ESMTP id A7AA0D1CAA9 for ; Thu, 29 Apr 2004 21:53:18 -0300 (ADT) Received: from selectacast.net ([192.168.0.2]) by tupari.net (8.12.8/8.12.8) with ESMTP id i3U0rLCE028271; Thu, 29 Apr 2004 20:53:22 -0400 Message-ID: <4091A381.3020307@selectacast.net> Date: Thu, 29 Apr 2004 20:53:21 -0400 From: Joseph Shraibman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rod Taylor Cc: Postgresql Performance Subject: Re: Insert only tables and vacuum performance References: <1083285855.30065.462.camel@jester> In-Reply-To: <1083285855.30065.462.camel@jester> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/517 X-Sequence-Number: 6817 Rod Taylor wrote: >>Or even better an offset into the datatable for the earliest deleted >>row, so if you have a table where you update the row shortly after >>insert and then never touch it vacuum can skip most of the table >>(inserts are done at the end of the table, right?) > > > Inserts are done at the end of the table as a last resort. But if most of the table is never updated then the inserts would tend to be at the end, right? > But anyway, > how do you handle a rolled back insert? > It is considered like a deleted row to be vacuumed.