pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wayneh <wayneh@mirthcorp.com>
To: 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 19:10:06 -0700 (PDT)
Message-ID: <1399342206482-5802595.post@n5.nabble.com> (raw)
In-Reply-To: <20140505195633.GN6018@eldon.alvh.no-ip.org>
References: <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>
	<19915.1399316187@sss.pgh.pa.us>
	<20140505195633.GN6018@eldon.alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

I'm a coworker of Nick's and I was finally able to create a standalone test
case. I've attached a Java file  Test.java
<http://postgresql.1045698.n5.nabble.com/file/n5802595/Test.java;  . All you
have to do is change the first 3 lines of the main method to set your url,
username, and password, and make sure to include a JDBC jar. This
application will do the following

1. Create tables T1 and T2.
2. Begin populating rows into T1 and T2 and updating them in a "specific"
order
3. Every 1000 messages, a reindex will be attempted on T1's primary key.
This will fail eventually.

I've attached a screenshot of what you'll likely see as the console output.
<http://postgresql.1045698.n5.nabble.com/file/n5802595/error.png; 

Here are some additional notes I have on the matter

1. I was able to reproduce the problem on both Windows and Linux with
Postgres 9.3.4.
2. I was able to reproduce the problem with the latest 9.3 JDBC jars
(although we are still using 9.1 for our software)
3. After applying the patch that you mentioned, I can no longer reproduce
the problem at all. It seems very likely that 
http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=c0bd128c8
<http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=c0bd128c8;  
is in fact the problem that we were seeing, but I'm attaching this test case
anyway just in case you can infer anything else from it.

How safe would it be if we took the 9.3.4 source code and just applied the
patch above. Like Nick said, we aren't aware of exactly what this patch does
and whether there are any commit dependencies it relies on.

Thanks for all your replies,
Wayne Huang



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-10189-Limit-in-9-3-4-no-longer-works-when-ordering-using...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
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: <1399342206482-5802595.post@n5.nabble.com>
Permalink:  ../1399342206482-5802595.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1399342206482-5802595.post@n5.nabble.com

 · 

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: wayneh@mirthcorp.com
  Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
  In-Reply-To: <1399342206482-5802595.post@n5.nabble.com>
  References: <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> <19915.1399316187@sss.pgh.pa.us> <20140505195633.GN6018@eldon.alvh.no-ip.org> <1399342206482-5802595.post@n5.nabble.com>

* 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