From: Martijn van Oosterhout <kleptog@svana.org>
To: tmp <skrald@amossen.dk>
Cc: pgsql-general@postgresql.org
Subject: Re: Recursive queries
Date: Tue, 25 Jan 2005 20:50:02 +0100
Message-ID: <20050125194959.GL29308@svana.org> (raw)
In-Reply-To: <1106681095.3214.6.camel@debian>
References: <pan.2005.01.24.16.27.44.945370@amossen.dk>
<20050125185833.GK29308@svana.org>
<1106681095.3214.6.camel@debian>
On Tue, Jan 25, 2005 at 08:24:54PM +0100, tmp wrote:
> > What do you mean by resursive queries? A query can have a subquery
> > which calls a function which executes another query. That counts as
> > recursion in my book. What type of recursion are you thinking of?
>
> SQL:2003 defines a language construct for recursive queries (T131 and
> T132). What I ment with the question was: Will postgresql soon support a
> similar (or the same) construct?
I don't have the SQL standard but I think you're referring to tables
that join to themselves and you want to follow these links recursively.
I don't think anybody has written the syntactic sugar, but someone did
write a function that provides equivalent output.
Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kleptog@svana.org, skrald@amossen.dk
Subject: Re: Recursive queries
In-Reply-To: <20050125194959.GL29308@svana.org>
References: <pan.2005.01.24.16.27.44.945370@amossen.dk> <20050125185833.GK29308@svana.org> <1106681095.3214.6.camel@debian> <20050125194959.GL29308@svana.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox