Re: Trees: maintaining pathnames

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

> My existing tree implementation reflects the files contained on disk.
>  The
> full pathname to a particlar file is obtained from the path to the
> parent
> directory.  I am now considering putting this information into a
> field in
> the table.
<snip>
> Suggestions, comment, open ridicule, most welcome.  thanks.

This is a fine implementation using the adjacency list model of tree
design.  However, I think you may find that the string-based tree
implementation in /contrib/ltree is more suited to your purposes, and
easier to maintain.

-Josh Berkus


В списке pgsql-sql по дате отправления:

Предыдущее
От: jasiek@klaster.net
Дата:
Сообщение: Re: Problems invoking psql. Help please.
Следующее
От: greg@turnstep.com
Дата:
Сообщение: Re: Trees: maintaining pathnames