Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Modeling trees with Nested Sets and Nested Intervals


  • From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
  • To: Daniel Browning <db(at)kavod(dot)com>
  • Cc: pgsql-sql(at)postgresql(dot)org
  • Subject: Re: Modeling trees with Nested Sets and Nested Intervals
  • Date: Mon, 10 Apr 2006 10:14:07 +0900
  • Message-id: <A3797CB3-1B6D-4456-B85A-4B8B33029520@myrealbox.com> <text/plain>


On Apr 7, 2006, at 16:28 , Daniel Browning wrote:

* Static Hierarchies and Binary Fractions in PostgreSQL, by Michael Glaesemann
  http://www.grzm.com/fornow/archives/2004/07/10/static_hierarchies

This is the most complete out-of-the-box solution I've found.

I wrote up Tropashko's method because I had found enough material on the nested set method on the web to apply it to PostgreSQL (which works quite well once you get it set up) and was interested in seeing what else was out there. Though, as you note, there's no ready-to-go nested set solution specifically for PostgreSQL. You may also want to take a look at contib/ltree in the PostgreSQL sources for handling hierarchical data. I haven't used it myself, but many others smarter than me have reported satisfaction with it.

If you start implementing the nested set method and have some questions, feel free to post them here. I'm sure someone will be able to answer them.

Good luck!

Michael Glaesemann
grzm myrealbox com






Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group