Re: 7.3.4 and 7.4 ORDER in queries

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: 7.3.4 and 7.4 ORDER in queries
Дата
Msg-id Pine.LNX.4.44.0311271933330.15144-100000@peter.localdomain
обсуждение исходный текст
Ответ на 7.3.4 and 7.4 ORDER in queries  (javier garcia - CEBAS <rn001@cebas.csic.es>)
Список pgsql-general
javier garcia - CEBAS writes:

> I've just installed postgres7.4 and have realized tat the order of rows in
> queries in different to that in 7.3.4. It seems that previously it was more
> logic, ordering by the first column, then by the second,... by default.
> At least this is so in a couple of queries I have. And now I have to
> explicitly say the order I want.

Unless you specify ORDER BY explicitly, the order is completely random.
In practice, it depends on the order of the rows on disk and the query
execution plan, but those are implementation details that may change over
time.  If you need a particular order, you need to say so.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: 7.3.4 and 7.4 ORDER in queries
Следующее
От: Mike Benoit
Дата:
Сообщение: Re: Postgresql on file system EXT2 or EXT3