X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3AC84D1B50F; Sun, 5 Oct 2003 13:37:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 33064-07; Sun, 5 Oct 2003 10:36:48 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id C7010D1B53C; Sun, 5 Oct 2003 10:36:43 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h95Daee20397; Sun, 5 Oct 2003 09:36:40 -0400 (EDT) From: Bruce Momjian Message-Id: <200310051336.h95Daee20397@candle.pha.pa.us> Subject: Re: COUNT(*) again (was Re: [HACKERS] Index/Function organized In-Reply-To: <28313.1065334111@sss.pgh.pa.us> To: Tom Lane Date: Sun, 5 Oct 2003 09:36:40 -0400 (EDT) Cc: Hannu Krosing , Christopher Browne , pgsql-performance@postgresql.org, "pgsql-hackers@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/153 X-Sequence-Number: 3901 Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> I think that's not happening, conditionally or otherwise. The atomicity > >> problems alone are sufficient reason why not, even before you look at > >> the performance issues. > > > What are the atomicity problems of adding a create/expire xid to the > > index tuples? > > You can't update a tuple's status in just one place ... you have to > update the copies in the indexes too. But we don't update the tuple status for a commit, we just mark the xid as committed. We do have lazy status bits that prevent later lookups in pg_clog, but we have those in the index already also. What am I missing? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073