Re: START WITH and CONNECT BY - Mailing list pgsql-advocacy

From Robert Treat
Subject Re: START WITH and CONNECT BY
Date
Msg-id 200504110913.00648.xzilla@users.sourceforge.net
Whole thread Raw
In response to START WITH and CONNECT BY  ("Stephen Schwenker" <saschwen@schwenker.org>)
List pgsql-advocacy
On Thursday 07 April 2005 18:27, Stephen Schwenker wrote:
> Hello,
>
> Has anyone considdered adding the START WITH and CONNECT BY functionallity
> that Oracle has.  I've been developing for many years now and I find that
> almost every application we build requires some kind of hierarchical
> structure.  I know there are other ways of accomplishing this in
> Postgresql, but I've always found it to be more work than using something
> simple like the Oracle START WITH/CONNECT BY clause.
>
> It's been over 5 years since I've done any c/c++ development but it might
> be a little fun to work on.  So I was wondering where would be the best
> place for someone to start if they were to considder developing this
> functionallity?
>

It's been discussed before and the general consensus has been that it will not
be put into the main line since it is not standards compliant.  Instead the
SQL99 With style recursive syntax is being added.   Some people have
suggested they would like to see both syntaxs supported, if you'd like to
lobby for that you'll need to bring it up on -hackers (but make sure you've
read the archives on it first)

It is worth noting that there is a connectby function included in the
tablefunc contrib module, so you might want to check that out as well, it's
possible it will meet your needs or at least provide a good starting point if
you want to work on this feature.

--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

pgsql-advocacy by date:

Previous
From: Josh Berkus
Date:
Subject: Re: START WITH and CONNECT BY
Next
From: "Roderick A. Anderson"
Date:
Subject: Pg 8.0 in SysAdmin Magazine