Re: Join method influences scan method?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Join method influences scan method?
Дата
Msg-id 20910.1111041675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Join method influences scan method?  (mark.lubratt@indeq.com)
Список pgsql-performance
mark.lubratt@indeq.com writes:
> So, it would seem like my optimal plan should have hash joins with index
> scans.

No.  The thing you are looking at here is a nestloop join with inner
index scan, which has to be understood as a unit even though EXPLAIN
doesn't describe it that way.  The inner indexscan is repeated once
for each outer row, using a join key from the outer row as part of the
index lookup.  That's simply not relevant to the other kinds of joins,
because they expect the inner and outer relations to be scanned
independently.

            regards, tom lane

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

Предыдущее
От: mark.lubratt@indeq.com
Дата:
Сообщение: Join method influences scan method?
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: index scan on =, but not < ?