Re: Adjacency List or Nested Sets to model file system hierarchy?

From: "hubert depesz lubaczewski" <depesz(at)gmail(dot)com>
To: "Bill Moseley" <moseley(at)hank(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Adjacency List or Nested Sets to model file system hierarchy?
Date: 2007-02-13 09:53:52
Message-ID: 9e4684ce0702130153p4c8194damf1335a360f19ef0e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/12/07, Bill Moseley <moseley(at)hank(dot)org> wrote:
>
> Also, the Nested Sets seem to solve problems I don't have -- such as
> finding all descendants of a given node.
>

you can also check different way.
i described it here:
http://www.depesz.com/various/various-sqltrees-implementation.php
it is in polish, but it's full of examples and should be readable even for
somebody with 0 knowledge of polish.
basically - this is extension of adjacency list which allows all kinds of
access without recursive queries.

in case you'd have questions with this - please do not hesitate to ask,

best regards,

depesz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shoaib Mir 2007-02-13 09:55:57 Re: How to append tables in a view
Previous Message Shane Ambler 2007-02-13 09:51:26 Re: How to append tables in a view