Re: Trees: maintaining pathnames - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Trees: maintaining pathnames
Date
Msg-id web-1837760@davinci.ethosmedia.com
Whole thread Raw
In response to Re: Trees: maintaining pathnames  ("Dan Langille" <dan@langille.org>)
List pgsql-sql
Dan,

Looks good to me.  It's the same thing I do for the Celko tree
structures in one application -- I have a cache table holding such
things as level and parent_id for each node, values which can only be
generated from the source tables through slow aggregates.

Also, the use of a child table to hold the pathnames should cure your
"cascading trigger" problem.

-Josh Berkus


pgsql-sql by date:

Previous
From: "Dan Langille"
Date:
Subject: Re: Trees: maintaining pathnames
Next
From: Tilo Schwarz
Date:
Subject: Question on SQL and pg_-tables