nested loop joins

Поиск
Список
Период
Сортировка
От Greg Rychlewski
Тема nested loop joins
Дата
Msg-id CAKemG7Xi_3eS+wT97ENWbzAmpwoVHJ5=YbQQcnswo5G5qHaNMw@mail.gmail.com
обсуждение исходный текст
Ответы Re: nested loop joins  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hi,

I'm looking to understand how nested loop joins with limits work. Say I have this query

SELECT *
FROM a  INNER JOIN b ON a.id = b.id 
LIMIT 10;

Say this was done as a nested loop join where the rows of "a" are the outer loop. 

In this scenario, would all the rows of "a" be materialized or are they lazily evaluated? 

If they are lazily evaluated is it done using cursors?

Thanks


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

Предыдущее
От: Alexey M Boltenkov
Дата:
Сообщение: Re: Strange sequences - how to construct?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: nested loop joins