Re: Tree structure - Mailing list pgsql-sql

From Zeljko Trogrlic
Subject Re: Tree structure
Date
Msg-id 4.1.20000911182824.018d5078@192.168.0.7
Whole thread Raw
In response to Tree structure  ("Trewern, Ben" <Ben.Trewern@mowlem.com>)
List pgsql-sql
Normally it's done with self-relation. You need a table with "ID" and "PARENT_ID". PARENT_ID will contain null for
rootlevel and other row's ID for children. One warning: going through such tree could be slow. I don't know is there
anythingPostgreSQL specific that might help. I know that Oracle have a special tree command.<br /><br /> At 14:27
11.9.2000, Trewern, Ben wrote: <br /><br /><font size="2"><blockquote cite="cite" type="cite">Anybody know how to make
atree structure using related tables using Postgres.  Something like a directory structure is what I'm aiming for.  I'm
surethere is an easy way but I'm having probs.<br /></blockquote></font><br /> Any help would be appreciated. <br /><br
/><fontsize="2">Ben.</font><br /> 

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Isolation and Concurrency in PG functions?
Next
From: "G. Anthony Reina"
Date:
Subject: How can I select all of the tables with field name 'area'?