From: | Hannu Krosing <hannu(at)skype(dot)net> |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Yann Michel <yann-postgresql(at)spline(dot)de>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CONNECT BY PRIOR |
Date: | 2005-11-15 14:13:47 |
Message-ID: | 1132064027.4691.4.camel@fuji.krosing.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)skype(dot)net>
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Joseph Krogh | 2005-11-15 14:13:54 | Re: Running PostGre on DVD |
Previous Message | Tom Lane | 2005-11-15 14:09:41 | Re: Fixes for 8.1 run of pgindent |