Re: select DISTINCT not ordering the returned rows

Поиск
Список
Период
Сортировка
От Ioana Danes
Тема Re: select DISTINCT not ordering the returned rows
Дата
Msg-id 538025.93750.qm@web120106.mail.ne1.yahoo.com
обсуждение исходный текст
Ответ на Re: select DISTINCT not ordering the returned rows  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I totally agree with you and the problem is gonna be fixed. I just needed a temporary solution until the patch goes
out. 

Thank you,
Ioana

--- On Wed, 3/2/11, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> From: Tom Lane <tgl@sss.pgh.pa.us>
> Subject: Re: [GENERAL] select DISTINCT not ordering the returned rows
> To: "Ioana Danes" <ioanasoftware@yahoo.ca>
> Cc: "PostgreSQL General" <pgsql-general@postgresql.org>
> Received: Wednesday, March 2, 2011, 3:44 PM
> Ioana Danes <ioanasoftware@yahoo.ca>
> writes:
> > I upgraded postgres from 8.3 to 9.0.3 and I have an
> issue with the order of the returned rows.
>
> Your application is simply broken if it assumes that
> DISTINCT results in
> ordering the rows.  The only thing that guarantees
> that is an ORDER BY.
>
> You could probably work around it for the short term by
> unsetting
> enable_hashagg, but you really ought to fix the query
> instead.
>
>            
> regards, tom lane
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: select DISTINCT not ordering the returned rows
Следующее
От: Hannes Erven
Дата:
Сообщение: Re: Per-session memory footprint (9.0/windows)