Re: Figuring out relationships between tables. - Mailing list pgsql-general

From Christophe Pettus
Subject Re: Figuring out relationships between tables.
Date
Msg-id 069F84CC-482D-47E3-B19C-642DAA797ABE@thebuild.com
Whole thread Raw
In response to Figuring out relationships between tables.  (Andrew Cooper <kairoscreative@gmail.com>)
List pgsql-general
On Aug 23, 2009, at 7:47 AM, Andrew Cooper wrote:
> An employee can only have 1 manager/supervisor but the hierarchy can
> be varying depths.

Traditionally, that's done by having a "supervisor" field as part of
the employee record, with either NULL or a special marker value to
indicate "no supervisor."  The new WITH RECURSIVE functionality of 8.4
makes dealing with tree structures like this much easier.

pgsql-general by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Strange "missing tables" problem
Next
From: Greg Stark
Date:
Subject: Re: Multiple table entries?