From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Nick Rupley <nickr@mirthcorp.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Nick Rupley <nickr@mirth.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
Date: Mon, 5 May 2014 14:24:54 -0400
Message-ID: <20140505182454.GL6018@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <CAMi1eSFUoh+Qd2-U_i=W366w7D5xyH_vAhyKTnHmCZzepGu8Bg@mail.gmail.com>
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>
<CAMi1eSFUoh+Qd2-U_i=W366w7D5xyH_vAhyKTnHmCZzepGu8Bg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Nick Rupley wrote:
> Hey guys, so we applied that patch, and it *appears* to have fixed the
> issue! Through our application, we basically have it to the point where we
> are able to reliably reproduce the issue within 5 minutes or so. However we
> applied the patch, ran the same tests, and it no longer happened at all,
> even after an hour of testing.
>
> We attempted to reproduce the issue in a standalone way, doing all the same
> inserts/updates in all the same transactions, but unfortunately we haven't
> yet been able to reproduce it there. I'm thinking it's likely a very
> timing-sensitive issue, and it just happens to manifest for our application
> because of race conditions, etc.
Yes, it's extremely timing-sensitive.
> Not sure if this is relevant or not, but it looks like the duplicate rows
> continue to be inserted here and there on our production box (to which we
> haven't yet applied the hotfix). As I stated before that production box did
> have some server crashes before, but actually it hasn't had any recently
> (in the past week), and yet the duplicate rows continue to happen.
This bug is not dependent on a crash; the corruption occurs to the live
data. Only the previous bug mentioned by Tom manifested itself during
crash recovery.
> At one point we did identify and reindex the tables that were needed,
> which worked great. But then *after* that, new duplicate rows cropped
> up, even without the server having crashed. Does that still make sense
> within the context of this bug?
Yes. Upgrading to a fixed binary is, of course, strongly recommended.
> If we're able to create that self-contained test case (we're trying) we'll
> be sure to let you know.
Be sure to let us know if you find other bugs, too!
--
Álvaro Herrera 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
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: alvherre@2ndquadrant.com, nickr@mirthcorp.com, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, nickr@mirth.com
Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
In-Reply-To: <20140505182454.GL6018@eldon.alvh.no-ip.org>
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> <CAMi1eSFUoh+Qd2-U_i=W366w7D5xyH_vAhyKTnHmCZzepGu8Bg@mail.gmail.com> <20140505182454.GL6018@eldon.alvh.no-ip.org>
* 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