Re: Trees in SQL - Mailing list pgsql-sql

From Ron Peterson
Subject Re: Trees in SQL
Date
Msg-id 20020524152806.A4111@yellowbank.com
Whole thread Raw
In response to Re: Trees in SQL  (Gregory Brauer <greg@wildbrain.com>)
List pgsql-sql
On Fri, May 24, 2002 at 11:34:41AM -0700, Gregory Brauer wrote:
> 
> I guess this page answers many of my questions...
> 
> http://www.intelligententerprise.com/001020/celko1_1.shtml
> 
> Anybody have comments on working with nested sets?

Note that Joe Celko concludes this article by saying "Although this procedure
works, you might want to use a language that has arrays in it, instead of
trying to stick to pure SQL."

The operations required to maintain this type of structure are expensive.

You might like to take a look at:

http://cddb.sai.msu.su/~megera/postgres/gist/

I haven't had a chance to try this out yet, but it looks promising.

As an added bonus, if you're Russian, the documentation is in Russian.
Unfortunately, if you're not Russian, the documentation is in Russian.

Otherwise, for the time being, I'd recomend procedural code, rather than pure
SQL.

-- 
Ron Peterson                   -o)
87 Taylor Street               /\\
Granby, MA  01033             _\_v
https://www.yellowbank.com/   ---- 


pgsql-sql by date:

Previous
From: Douglas Trainor
Date:
Subject: Re: Trees in SQL
Next
From: Oleg Bartunov
Date:
Subject: Re: Trees in SQL