X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D5EFC56839 for ; Wed, 16 Mar 2005 04:45:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08037-03 for ; Wed, 16 Mar 2005 04:44:59 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 207895656D for ; Wed, 16 Mar 2005 04:44:57 +0000 (GMT) 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 j2G4iUGn002285; Tue, 15 Mar 2005 23:44:31 -0500 (EST) To: Alvaro Herrera Cc: Robert Treat , Richard Huxton , Tambet Matiisen , pgsql-performance@postgresql.org Subject: Re: One tuple per transaction In-reply-to: <20050316000629.GB17051@dcc.uchile.cl> References: <4236ACE5.1040004@archonet.com> <200503151652.30266.xzilla@users.sourceforge.net> <818.1110930679@sss.pgh.pa.us> <20050316000629.GB17051@dcc.uchile.cl> Comments: In-reply-to Alvaro Herrera message dated "Tue, 15 Mar 2005 20:06:29 -0400" Date: Tue, 15 Mar 2005 23:44:30 -0500 Message-ID: <2284.1110948270@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/315 X-Sequence-Number: 11020 Alvaro Herrera writes: > On Tue, Mar 15, 2005 at 06:51:19PM -0500, Tom Lane wrote: >> I believe VACUUM already knows that xmin = xmax implies the tuple >> is dead to everyone. > Huh, that is too simplistic in a subtransactions' world, isn't it? Well, it's still correct as a fast-path check. There are extensions you could imagine making ... but offhand I agree that it's not worth the trouble. Maybe in a few years when everyone and his sister is using subtransactions constantly, we'll feel a need to optimize these cases. regards, tom lane