Re: Trees: maintaining pathnames

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Trees: maintaining pathnames
Дата
Msg-id web-1837760@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: Trees: maintaining pathnames  ("Dan Langille" <dan@langille.org>)
Список 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 по дате отправления:

Предыдущее
От: "Dan Langille"
Дата:
Сообщение: Re: Trees: maintaining pathnames
Следующее
От: Tilo Schwarz
Дата:
Сообщение: Question on SQL and pg_-tables