Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIhh-0005Dx-Dy for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 19:01:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WgIhg-0007fY-EV for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 19:01:00 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIhf-0007fS-OV for pgsql-bugs@postgresql.org; Fri, 02 May 2014 19:00:59 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgIhc-0003F3-Ab for pgsql-bugs@postgresql.org; Fri, 02 May 2014 19:00:58 +0000 Received: from anarazel.de (p5DDC5406.dip0.t-ipconnect.de [93.220.84.6]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0MDVnR-1Weu3a2uIH-00Gt7m; Fri, 02 May 2014 21:00:51 +0200 Received: by anarazel.de (Postfix, from userid 1000) id E12C9100A2A; Fri, 2 May 2014 21:00:50 +0200 (CEST) Date: Fri, 2 May 2014 21:00:50 +0200 From: Andres Freund To: Tom Lane 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2014.1399055030@sss.pgh.pa.us> X-Provags-ID: V02:K0:p4au3P+Sq34ocTag299vlKbxLkQ2+AS6HEfnMLcewfu iP/1m+dXibvtR1PsCZVmdrWoYAAnJJ/D3nE0WwD7inyZJpu3Hw mw5N2NBz08nL1mY2w7CwiAZ2lYTjxw3qnmK+TL2OzI3Sga4ucI 1/JtYe3P0ujU275PquuZOyasoEG/TXz6F11lfUCDE0A4oPW5xh alhp55CmWmJRKBcCcLG0XvqQf5hqWmJBVz+NMfYPLfEFod754m Ij3ebO31f5asfRn8bN80fDfxrhvf44ohpRid6J3TyVQ6JYST0y S86QGUGB3dugMKs8Qzxkolu5U+sNYPmQgcY5aMr6DY9uIWOZFy hBA95L4TRc4Q40yyz37vvL3shNYwYFYxArSVanfjW X-Pg-Spam-Score: -1.9 (-) 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 2014-05-02 14:23:50 -0400, Tom Lane wrote: > Nick Rupley writes: > > We also tracked down every single duplicate entry and noted the time it got > > inserted. What we found is that this issue only ever started happening > > after we upgraded from 9.0.13 to 9.3.4. The upgrade itself doesn't seem to > > be the culprit, but messages received *after* the upgrade encountered this > > issue. > > Oh dear. You were never on any earlier 9.3.x release? If not, then > there's still some unfixed bug in this area in 9.3.4. > > 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. :(. 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