pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zeljko Trogrlic <zeljko@technologist.com>
To: Trewern, Ben <Ben.Trewern@mowlem.com>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Tree structure
Date: Mon, 11 Sep 2000 18:30:55 +0200
Message-ID: <4.1.20000911182824.018d5078@192.168.0.7> (raw)
In-Reply-To: <996802F75C3CD411B424001083FA445B0594B0@CET_PONXX_FP001>

<html>
Normally it's done with self-relation. You need a table with
&quot;ID&quot; and &quot;PARENT_ID&quot;. PARENT_ID will contain null for
root level and other row's ID for children. One warning: going through
such tree could be slow. I don't know is there anything PostgreSQL
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 type=cite cite>Anybody know how to make a tree
structure using related tables using Postgres.&nbsp; Something like a
directory structure is what I'm aiming for.&nbsp; I'm sure there is an
easy way but I'm having probs.<br>
</font><br>
Any help would be appreciated. <br>
<br>
<font size=2>Ben.</font> </blockquote><br>
</html>





view thread (5+ messages)  latest in thread

Message-ID: <4.1.20000911182824.018d5078@192.168.0.7>
Permalink:  ../4.1.20000911182824.018d5078@192.168.0.7/
Also on:    postgresql.org/message-id/4.1.20000911182824.018d5078@192.168.0.7

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: zeljko@technologist.com, Ben.Trewern@mowlem.com
  Subject: Re: Tree structure
  In-Reply-To: <4.1.20000911182824.018d5078@192.168.0.7>
  References: <996802F75C3CD411B424001083FA445B0594B0@CET_PONXX_FP001> <4.1.20000911182824.018d5078@192.168.0.7>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox