Re: can't get rid of unnesesary SORT step in explain plan for hash join

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: can't get rid of unnesesary SORT step in explain plan for hash join
Дата
Msg-id 22028.989718836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на can't get rid of unnesesary SORT step in explain plan for hash join  (Alexey Nalbat <alexey@price.ru>)
Ответы Re: can't get rid of unnesesary SORT step in explain plan for hash join
Список pgsql-sql
Alexey Nalbat <alexey@price.ru> writes:
> So, my question is: how can I get rid of this unnesesary "Sort" step
> in the execution plan for hash join?

You can't, because it's not unnecessary.  Hash join doesn't promise
to produce its outputs in any particular order.  But the Unique
filter needs to see its inputs in order by the fields being made
unique.
        regards, tom lane


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

Предыдущее
От: Hans-Jürgen Schönig
Дата:
Сообщение: SELECT timestamp('2001-06-12'::date - '2000-06-12'::date)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SELECT timestamp('2001-06-12'::date - '2000-06-12'::date)