pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Nick Rupley <nickr@mirthcorp.com>
Cc: nickr@mirth.com
Cc: pgsql-bugs@postgresql.org
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
Date: Fri, 02 May 2014 15:08:30 -0400
Message-ID: <3354.1399057710@sss.pgh.pa.us> (raw)
In-Reply-To: <20140502190050.GC12715@awork2.anarazel.de>
References: <20140430214055.1395.15117@wrigleys.postgresql.org>
	<9896.1398900139@sss.pgh.pa.us>
	<CAMi1eSFAkOWYCUepfsu6gwuxHJ5n=jT46rKVHzBNBVOjM-=Ajw@mail.gmail.com>
	<10587.1398901968@sss.pgh.pa.us>
	<CAMi1eSFZxAhJRwakc+CfWv8xn1smSR93+Fcmh5Q_4kLUzTNWLQ@mail.gmail.com>
	<2014.1399055030@sss.pgh.pa.us>
	<20140502190050.GC12715@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@2ndquadrant.com> 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



view thread (24+ messages)  latest in thread

Message-ID: <3354.1399057710@sss.pgh.pa.us>
Permalink:  ../3354.1399057710@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3354.1399057710@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, nickr@mirthcorp.com, nickr@mirth.com, alvherre@2ndquadrant.com
  Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
  In-Reply-To: <3354.1399057710@sss.pgh.pa.us>
  References: <20140430214055.1395.15117@wrigleys.postgresql.org> <9896.1398900139@sss.pgh.pa.us> <CAMi1eSFAkOWYCUepfsu6gwuxHJ5n=jT46rKVHzBNBVOjM-=Ajw@mail.gmail.com> <10587.1398901968@sss.pgh.pa.us> <CAMi1eSFZxAhJRwakc+CfWv8xn1smSR93+Fcmh5Q_4kLUzTNWLQ@mail.gmail.com> <2014.1399055030@sss.pgh.pa.us> <20140502190050.GC12715@awork2.anarazel.de> <3354.1399057710@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox