Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5293B9FA12B for ; Fri, 1 Dec 2006 15:27:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 94281-01 for ; Fri, 1 Dec 2006 15:27:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 48DAE9F9F0E for ; Fri, 1 Dec 2006 15:27:23 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB1JRDrb001583; Fri, 1 Dec 2006 14:27:13 -0500 (EST) To: Bruce Momjian cc: josh@agliodbs.com, pgsql-core@postgresql.org, Heikki Linnakangas , Alvaro Herrera , Simon Riggs , pgsql-hackers@postgresql.org Subject: Re: [CORE] FOR SHARE vs FOR UPDATE locks In-reply-to: <200612011916.kB1JGRx16905@momjian.us> References: <200612011916.kB1JGRx16905@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 01 Dec 2006 14:16:27 -0500" Date: Fri, 01 Dec 2006 14:27:13 -0500 Message-ID: <1582.1165001233@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/39 X-Sequence-Number: 94520 Bruce Momjian writes: > Josh Berkus wrote: >> So, I think it needs to go on the list for 8.2.1 or 8.3 (depending on what >> changes the fix requires) but I don't think we should hold up the release. > We cannot add something this major in a minor release --- it would have > to be 8.3. If someone thinks of a brilliant solution that doesn't change on-disk layout, maybe we could implement it in 8.2.x, but right now I'm not feeling hopeful about that. The best idea I have at the moment is that we might be able to do something as part of the proposed plan to fold cmin/cmax into a single field. The thought there was that there could be some in-memory state for tuples that had been modified multiple times by a single xact --- perhaps that could be extended to cover this problem. This is just handwaving at the moment though. In particular, is-the-tuple-locked-or-not seems like it has to be externally visible state, so maybe it can't work. regards, tom lane