Re: Selecting tree data

From: "D(dot) Dante Lorenso" <dante(at)lorenso(dot)com>
To: Pat Maddox <pergesu(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Selecting tree data
Date: 2007-10-26 02:01:53
Message-ID: 47214A91.3050401@lorenso.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

-- Dante

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sean Z. 2007-10-26 02:30:14 Partitioning: how to exclude unrelated partitions?
Previous Message Tom Lane 2007-10-26 01:43:48 Re: [GENERAL] Crosstab Problems