Re: Nested Sets - Mailing list pgsql-sql

From A. Kulikov
Subject Re: Nested Sets
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Nested Sets  (Troels Arvin <[email protected]>)
Responses Re: Nested Sets
List pgsql-sql
Seen this before. The solution is rather lame, as most of the logic is
shifted out to the code, whereas it could have been implemented in the
database directly. I have managed to get a move_tree algorythm working
rather fast and glitch free by now, yet I am wondering if there are
other directions to follow. What I can see as actual are:
* deleting trees* swapping nodes places on one level (including the subtrees)

btw, do stored procedures (user functions in other words) have to
implement table locking or be carried out inside a transaction such
that the nested set indexes remain intact?

regards,

alex

2005/4/16, Troels Arvin <[email protected]>:
> On Sat, 16 Apr 2005 16:31:43 +0400, A. Kulikov wrote:
>
> > Has anyone implemented a pretty Nested Sets solution in
> > PostgreSQL?
>
> Maybe this is useful? :
> http://threebit.net/tutorials/nestedset/tutorial1.html
>
> --
> Greetings from Troels Arvin, Copenhagen, Denmark
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>


--
The mind is essential -- http://essentialmind.com/


pgsql-sql by date:

Previous
From: Troels Arvin
Date:
Subject: Re: Nested Sets
Next
From: Andrew Sullivan
Date:
Subject: Re: Nested Sets