Re: Hashjoin startup strategy (was Re: Getting different number of results when using hashjoin on/off)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hashjoin startup strategy (was Re: Getting different number of results when using hashjoin on/off)
Дата
Msg-id 17684.1133224461@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting different number of results when using hashjoin on/off  ("Mario Weilguni" <mario.weilguni@icomedias.com>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> I suspect this is obvious but since you asked, there isn't any way to keep
> around the hash table and just reuse it repeatedly instead of having to rescan
> the data over and over is there?

We already do that when possible --- which it's not in the particular
case at hand, because there's an outer-query parameter used in the
hashed subplan.

It occurs to me that the planner ought to favor putting parameterized
subplans on the outside of a hash join instead of the inside, so as to
make reuse more likely.  Not sure how to factor that into the cost
model though.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Hashjoin startup strategy (was Re: Getting different number of results when using hashjoin on/off)
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: gprof SELECT COUNT(*) results