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

Re: How to represent a tree-structure in a relational database

From: Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to represent a tree-structure in a relational database
Date: 2000-12-28 15:12:56
Message-ID: 3A4B5878.1F30271A@yellowbank.com (view raw or flat)
Thread:
Lists: pgsql-sql
Ron Peterson wrote:
> 
> This structure is more 'normal' in the sense that nodes without children
> (in a tree, the leaf nodes) don't have records in the edge table.

Phghpth.  Should have had my coffee first.  The first data structure
given would only have a null parent id for the root node, not all the
leaf nodes.  My mistake.  Thought it might be politic to point that out
before someone (correctly) called me an idiot.

-Ron-

In response to

pgsql-sql by date

Next:From: Kaare RasmussenDate: 2000-12-28 15:44:19
Subject: 7.1 feature?
Previous:From: Ron PetersonDate: 2000-12-28 14:45:32
Subject: Re: How to represent a tree-structure in a relational database

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group