BUG #10547: Query too long with order and limit

From: alamy(at)ltutech(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #10547: Query too long with order and limit
Date: 2014-06-06 09:55:10
Message-ID: 20140606095510.2721.52790@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 10547
Logged by: Arnaud Lamy
Email address: alamy(at)ltutech(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message kuladeepmca2007 2014-06-06 13:07:34 BUG #10548: NpgsqlException - ERROR: 57014: canceling statement due to user request
Previous Message surbhu06 2014-06-06 05:49:10 BUG #10545: The connection has been closed