Re: DISTINCT vs. GROUP BY

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: DISTINCT vs. GROUP BY
Дата
Msg-id 1127141565.3770.5.camel@localhost.localdomain
обсуждение исходный текст
Ответ на DISTINCT vs. GROUP BY  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Ответы Re: DISTINCT vs. GROUP BY  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
On Mon, 2005-19-09 at 16:27 +0200, Hans-Jürgen Schönig wrote:
> I was wondering whether it is possible to teach the planner to handle 
> DISTINCT in a more efficient way:
[...]
> Isn't it possible to perform the same operation using a
> HashAggregate? 

One problem is that DISTINCT ON is defined to return the first unique
row (according to the query's ORDER BY) for the set of DISTINCT ON
columns, which can't easily be done via hashing.

-Neil




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

Предыдущее
От: Hans-Jürgen Schönig
Дата:
Сообщение: DISTINCT vs. GROUP BY
Следующее
От: Tom Lane
Дата:
Сообщение: Re: New dot releases