Re: Selecting tree data - Mailing list pgsql-general

From Gregory Stark
Subject Re: Selecting tree data
Date
Msg-id 87sl3y70fg.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Selecting tree data  ("D. Dante Lorenso" <dante@lorenso.com>)
Responses Re: Selecting tree data  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-general
"D. Dante Lorenso" <dante@lorenso.com> writes:

> Pat Maddox wrote:
>> I'd like to store some tree data in my database.  I want to be able to
>> sort the data but maintain a tree structure....
>> Is it possible to pull all the data like that with one query?  How do
>> I need to structure the table, and what query do I have to run in
>> order to make it happen?
>
> You need to look at the connectby function which is part of contrib.

Or ltree. Depending on how static your data is and what else you need to do
with it.


--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: subversion support?
Next
From: Dave Page
Date:
Subject: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit