Re: Wish: remove ancient constructs from Postgres

Поиск
Список
Период
Сортировка
От Nikolay Samokhvalov
Тема Re: Wish: remove ancient constructs from Postgres
Дата
Msg-id e431ff4c0602270734u695b819fv2a4023b680bdb841@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Wish: remove ancient constructs from Postgres  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Wish: remove ancient constructs from Postgres  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Wish: remove ancient constructs from Postgres  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
On 2/27/06, Bruno Wolff III <bruno@wolff.to> wrote:
> The alternatives to distinct on are painful. They are generally both harder
> to read and run slower.
>

'DISTINCT ON' is evil constuction, because (w/o any 'ORDER BY') it
produses unpredictable result, as 'ORDER BY random()' does.

When newbie types 'random()', he understands what he is doing, but
it's not the case for 'DISTINCT ON' and can lead to mistakes.

--
Best regards,
Nikolay

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

Предыдущее
От: "Nikolay Samokhvalov"
Дата:
Сообщение: Re: Wish: remove ancient constructs from Postgres
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Wish: remove ancient constructs from Postgres