Re: A slow query - Help please? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: A slow query - Help please?
Date
Msg-id 9e4684ce0606201121m22449830m6dea3d730b775deb@mail.gmail.com
Whole thread Raw
In response to Re: A slow query - Help please?  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
On 6/19/06, Alban Hertroys <alban@magproductions.nl> wrote:
I found a way that works, and is indeed quite a bit faster. It is even
uglier than what you proposed. The problem wasn't the "order by" in the
subquery, but the "order by" combined with the "union":


sorry, i always forget about  the fact that union doesn't like internal order and limits. subquery is of course perfectly fine - i'm glad you found that :)

depesz

--
http://www.depesz.com/ - nowy, lepszy depesz

pgsql-general by date:

Previous
From: "Jasbinder Bali"
Date:
Subject: Re: Help requd in writing functions in C and using in Postgres
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Exporting data from view