Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn5at-0006MO-6q for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Dec 2013 11:53:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vn5as-00015C-ML for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Dec 2013 11:53:46 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn5ar-000155-N1 for pgsql-bugs@postgresql.org; Sun, 01 Dec 2013 11:53:45 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn5ao-0008VE-VA for pgsql-bugs@postgresql.org; Sun, 01 Dec 2013 11:53:45 +0000 Received: from intern.anarazel.de (p54AF4AA8.dip0.t-ipconnect.de [84.175.74.168]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id E95C24E8003; Sun, 1 Dec 2013 12:53:40 +0100 (CET) Date: Sun, 1 Dec 2013 12:53:40 +0100 From: Andres Freund To: Tom Lane , Alvaro Herrera Cc: Oliver Seemann , pgsql-bugs@postgresql.org Subject: Re: Update with subselect sometimes returns wrong result Message-ID: <20131201115340.GA14419@alap2.anarazel.de> References: <25601.1385834264@sss.pgh.pa.us> <20131130214018.GJ31100@awork2.anarazel.de> <22220.1385880062@sss.pgh.pa.us> <20131201081919.GF18793@alap2.anarazel.de> <20131201114514.GG18793@alap2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131201114514.GG18793@alap2.anarazel.de> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2013-12-01 12:45:14 +0100, Andres Freund wrote: > b) the old xmax cannot be an update, we wouldn't see the row version in that > case. And in any way, ISUPDATE_from_mxstatus() isn't sufficient to > determine whether the old row was an update, one needs to look at > LOCK_ONLY as well, no? That part's bogus, I missed part of the branch above the quoted code. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs