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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-sql by date

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