Re: CONNECT BY PRIOR

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: CONNECT BY PRIOR
Дата
Msg-id 1132064027.4691.4.camel@fuji.krosing.net
обсуждение исходный текст
Ответ на Re: CONNECT BY PRIOR  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
On T, 2005-11-15 at 09:53 +0100, Martijn van Oosterhout wrote:
> On Tue, Nov 15, 2005 at 01:38:31AM -0500, Jonah H. Harris wrote:
> > Hey Simon,
> >  I'm doing some research into recursive query planning in terms of theory
> > as-well-as actual implementation in other RDBMS. Let me get back to you when
> > I have some more definitive info.
> 
> My first reaction would be to have a sort of Repeat node, with two
> subnodes, the Tail and the Loop. The procedure would be to extract a
> tuple from the Tail (optionally returning it). Then put that tuple
> as the input to the Loop and start pulling tuples out of that.

Will this work for both DEPTH FIRST and BREADTH FIRST recursion ?

> Problem is, those new tuples may have to be sent through the loop again
> so you have a buffering problem. But it seems a fairly generic way of
> dealing with it.
> 
> Ofcourse, once you've done that, you might be getting very close to a
> Turing complete executor, no? :)
> 
> Have a nice day,

-- 
Hannu Krosing <hannu@skype.net>



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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Running PostGre on DVD
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: forcing returned values to be binary