Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIpD-0005Tg-DL for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 19:08:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WgIpC-00005j-Fv for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 19:08:46 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIpB-00005b-F1 for pgsql-bugs@postgresql.org; Fri, 02 May 2014 19:08:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIp4-0003Lg-PX for pgsql-bugs@postgresql.org; Fri, 02 May 2014 19:08:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s42J8UaD003355; Fri, 2 May 2014 15:08:30 -0400 From: Tom Lane To: Andres Freund cc: Nick Rupley , nickr@mirth.com, pgsql-bugs@postgresql.org, Alvaro Herrera Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index In-reply-to: <20140502190050.GC12715@awork2.anarazel.de> References: <20140430214055.1395.15117@wrigleys.postgresql.org> <9896.1398900139@sss.pgh.pa.us> <10587.1398901968@sss.pgh.pa.us> <2014.1399055030@sss.pgh.pa.us> <20140502190050.GC12715@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 02 May 2014 21:00:50 +0200" Date: Fri, 02 May 2014 15:08:30 -0400 Message-ID: <3354.1399057710@sss.pgh.pa.us> 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 Andres Freund writes: > On 2014-05-02 14:23:50 -0400, Tom Lane wrote: >> There's been one post-9.3.4 fix in this same general area: >> http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=c0bd128c8 >> but according to the commit message, at least, that bug would not have led >> to the symptom you're seeing, namely rows disappearing from indexes while >> they're still visible to seqscans. > Hm. With a bit of bad luck it might. The bug essentially has the > consequence that two updates might succeed for the same row. Consider > what happens if the row gets hot updated and then a second hot update, > due to the bug, also succeeds. The second update will change t_ctid of > the old tuple to point to the second version. If the transaction that > did the second update then aborts a index search starting at the root of > the hot change won't find any surviving tuple. But a seqscan will. :(. Hm, good point. Nick, if you're up for applying a hotfix you could try grabbing the aforesaid patch and seeing if it makes things better. If not, we're probably gonna need that test case to figure out where things are still going wrong. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs