From: Ron Peterson <rpeterson@yellowbank.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-general@postgresql.org
Subject: Re: recursive queries?
Date: Tue, 11 Apr 2000 11:21:08 -0400
Message-ID: <38F342E4.E5ADE2D8@yellowbank.com> (raw)
References: <Pine.LNX.4.21.0004102233410.460-100000@localhost.localdomain>
Peter Eisentraut wrote:
>
> Ron Peterson writes:
>
> > The problem is, while it's easy enough to define such a data
> > structure, support for recursive queries is rather lacking. To unroll
> > a directory tree, you basically have to resort to programming in
> > <insert your favorite language>.
>
> Well, nothing is perfect, and this is exactly the point where relational
> databases aren't. A lot of people that are a lot more educated than me on
> the matter have commented on just this in detail for years and decades so
> you should be able to find enough material out there if you're interested.
> Apparently, this sort of thing worked in network and/or hierarchical
> databases (which came before relational) and object oriented databases are
> supposes to fix it again, but the fact that all the world uses relational
> databases shows that either recursion (infinite joins) isn't widely useful
> or that the other advantages outweigh this problem. Not sure.
Don't get me wrong, I think SQL is wonderful. That's why this problem
is so fustrating. What I want to do seems _almost_ in reach, but not
quite. Defining recursive data structures is certainly possible in SQL,
but that's as far as it goes. There's no standard way to define
validation rules, or recursive queries.
I have read various mail threads and whatnot that have alluded to sQL
standards committees looking at the possibility of remedying these
deficiencies. But I haven't been able to find any evidence that these
efforts are actually underway. Does anyone know what direction the
evolution of the SQL standard is headed?
I keep struggling along with SQL not because I don't think recursive
data structures are useful, but as you say, "the other advantages
outweigh this problem". How would they be useful? It's not hard to
come up with some examples of useful problems where SQL falls short.
How about a genealogical database? Threaded mail or news discussions?
Web site layouts. Etc. I think all of these examples could benifit
from being implemented in a system that support transactions and
relational calculus.
I suppose I'm just another lazy activist - "Somebody should do
something!" I can suffer along for now, but what I'm really wondering
is if the investment I make now in SQL will be rewarded later when SQL
adds new and better features. Should I just hold my horses because
something better is coming along, or look elsewhere?
Ron Peterson
rpeterson@yellowbank.com
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: rpeterson@yellowbank.com, peter_e@gmx.net
Subject: Re: recursive queries?
In-Reply-To: <38F342E4.E5ADE2D8@yellowbank.com>
References: <Pine.LNX.4.21.0004102233410.460-100000@localhost.localdomain> <38F342E4.E5ADE2D8@yellowbank.com>
* 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