From: Josh Berkus <josh@agliodbs.com>
To: Eric <someone@somewhere.com>
To: pgsql-sql@postgresql.org
Subject: Re: Querying Hierarchical Data
Date: Mon, 3 Mar 2003 10:34:48 -0800
Message-ID: <200303031034.48165.josh@agliodbs.com> (raw)
In-Reply-To: <D4z8a.8540$X14.581155@news2.telusplanet.net>
References: <D4z8a.8540$X14.581155@news2.telusplanet.net>
Eric,
> How do I access hierarchical data under PostgreSQL?
> Does it have SQL command similar to Oracle's CONNECT BY?
Joe Conway wrote CONNECT BY as a function. It's in /contrib in your
PostgreSQL source for versions 7.3.0 and above, in /contrib/tablefunc I
think. There is also a different tree implementation in /contrib/ltree.
If that doesn't work for you, there are a number of different solutions to the
tree structure problem, and sample implementations of all of them on
PostgreSQL can be found through the web. Joe Celko covers three of them in
"SQL for Smarties".
--
Josh Berkus
Aglio Database Solutions
San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, someone@somewhere.com
Subject: Re: Querying Hierarchical Data
In-Reply-To: <200303031034.48165.josh@agliodbs.com>
* 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