pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alamy@ltutech.com
To: pgsql-bugs@postgresql.org
Subject: BUG #10547: Query too long with order and limit
Date: Fri, 06 Jun 2014 09:55:10 +0000
Message-ID: <20140606095510.2721.52790@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      10547
Logged by:          Arnaud Lamy
Email address:      alamy@ltutech.com
PostgreSQL version: 9.2.4
Operating system:   Linux
Description:        

Hi guys,

After double checked with #postgresqlfr users, I think I have a bug.

With the pastebin below, if I add a limit to my query the behavior totally
change. It could take minutes instead of milliseconds.

explain and query:

http://paste.debian.net/103554/

Please let me know if you need more informations.

I tested with 9.4, same behavior.

Arnaud



-- 
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 (2+ messages)  latest in thread

Message-ID: <20140606095510.2721.52790@wrigleys.postgresql.org>
Permalink:  ../20140606095510.2721.52790@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140606095510.2721.52790@wrigleys.postgresql.org

 · 

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: alamy@ltutech.com
  Subject: Re: BUG #10547: Query too long with order and limit
  In-Reply-To: <20140606095510.2721.52790@wrigleys.postgresql.org>
  References: <20140606095510.2721.52790@wrigleys.postgresql.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