Re: feature request START WITH ... CONNECT BY

From: Hannu Krosing <hannu(at)krosing(dot)net>
To: Ola Sundell <ola(at)miranda(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: feature request START WITH ... CONNECT BY
Date: 2002-02-13 04:21:52
Message-ID: 1013574112.1922.5.camel@rh72.home.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2002-02-12 at 19:53, Ola Sundell wrote:
> Recently I found an Oracle extension, START WITH .. CONNECT BY, which
> greatly eases parsing of n-way tree structures stored in table format.
>

It's in TODO as WITH RECURSIVE, which is the SQL3 way of doing it, but I
don't know if anyone is seriously working on it.

I have done a little investigation, and I think that this could be
doable without too much changes in planner/executor by doing repeated
merge or hash joins.

If we want automatic checks for infinite recursion there are also two
ways of doing it:
1) use a has of already selected rows or
2) pick new rows from a realize'd table and mark them as removed
there.

-------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-02-13 04:45:44 Re: Ready to branch 7.2/7.3 ?
Previous Message Marc G. Fournier 2002-02-13 03:18:08 Re: Ready to branch 7.2/7.3 ?