Re: Hash vs. HashJoin nodes

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Hash vs. HashJoin nodes
Дата
Msg-id 20050401003240.GU53309@decibel.org
обсуждение исходный текст
Ответ на Re: Hash vs. HashJoin nodes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Mar 31, 2005 at 12:03:37AM -0500, Tom Lane wrote:
> > Right; I was planning to bail and only do this for inner joins.
> 
> Well, for outer joins the optimal strategy is simple: pull from the
> outer query first.  If it's empty then you needn't touch the inner
> query at all.  Otherwise you have to build the hash table.

What about the case of an empty inner query? Granted, you still have to
read in the outer query, but would there be any reason to generate
hashes for it's results?
-- 
Jim C. Nasby, Database Consultant               decibel@decibel.org 
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: HEAD \df doesn't show functions with no arguments
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [GENERAL] Debugging deadlocks