Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C43FE2E010A for ; Wed, 28 Nov 2007 21:08:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 29290-01 for ; Wed, 28 Nov 2007 21:08:15 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 08ADE2E3791 for ; Wed, 28 Nov 2007 21:08:19 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-98-252.bk7-dsl.surnet.cl [200.126.98.252]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lAT18FxB025841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Nov 2007 17:08:18 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 97BFD47C0F; Wed, 28 Nov 2007 22:08:18 -0300 (CLST) Date: Wed, 28 Nov 2007 22:08:18 -0300 From: Alvaro Herrera To: Tom Lane Cc: Daniel Caune , pgsql-sql@postgresql.org Subject: Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE Message-ID: <20071129010818.GA5118@alvh.no-ip.org> References: <1E293D3FF63A3740B10AD5AAD88535D2068A695E@UBIMAIL1.ubisoft.org> <24728.1196287704@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <24728.1196287704@sss.pgh.pa.us> User-Agent: Mutt/1.5.16 (2007-06-11) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 28 Nov 2007 17:08:18 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/149 X-Sequence-Number: 29677 Tom Lane wrote: > "Daniel Caune" writes: > > It seems that, in certain condition, row (199,84) is shadowing row > > (3702,85); > > This would be the expected behavior if row (199,84) were an updated > version of row (3702,85), but you couldn't see it yet in your current > transaction snapshot. A plain SELECT would show the older version > (the current one according to the snapshot) while SELECT FOR UPDATE > would show the newest committed version. Hmm. We've been studying a case on one customer where xmin/xmax seem to be corrupted. It has had ups and downs because I have my doubts about their storage system, but I'm not completely sure that it can be really blamed. This is on 8.1.10. -- Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4" Major Fambrough: You wish to see the frontier? John Dunbar: Yes sir, before it's gone.