Re: Hash vs. HashJoin nodes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hash vs. HashJoin nodes
Дата
Msg-id 1931.1112243843@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Hash vs. HashJoin nodes  (Neil Conway <neilc@samurai.com>)
Ответы Re: Hash vs. HashJoin nodes
Re: Hash vs. HashJoin nodes
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> ... I'm wondering if there is any value to maintaining the hash
> vs. hash join distinction in the first place.)

One small objection is that we'd lose the ability to separately display
the time spent building the hash table in EXPLAIN ANALYZE output.  It's
probably not super important, but might be a reason to keep two plan
nodes in the tree.

I recall having looked at related ideas (not this one exactly) and being
discouraged by the fact that pulling a tuple from *either* input first
is demonstrably a losing strategy, since either input might have a very
high startup cost.  You could possibly ameliorate that by comparing the
estimated startup costs for the two inputs and pulling from the
estimated-cheaper one first.

This could all get pretty hairy when you consider that it has to still
work for left joins too ...
        regards, tom lane


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Hash vs. HashJoin nodes
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Hash vs. HashJoin nodes