Re: Trees: maintaining pathnames

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: Trees: maintaining pathnames
Дата
Msg-id 3DDE6198.26130.C4AB8AF0@localhost
обсуждение исходный текст
Ответ на Re: Trees: maintaining pathnames  ("Dan Langille" <dan@langille.org>)
Список pgsql-sql
On 20 Nov 2002 at 15:20, Dan Langille wrote:

> On 17 Nov 2002 at 14:51, Josh Berkus wrote:
> 
> > 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.
> 
> That looks interesting.  I have installed that onto a test server and
> I'm playing around with it.

FWIW, the ltree seems to implement a tree through text manipulation.  
I already have a tree (using a sinble table with id, parent_id).  
Therefore, I think ltree is not an option in this situation.

My creation of the pathname was to save processing time.  I'll talk 
more about that in my next post.
-- 
Dan Langille : http://www.langille.org/



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

Предыдущее
От: Jeff Boes
Дата:
Сообщение: Re: escape single quote in INSERT command
Следующее
От: "Dan Langille"
Дата:
Сообщение: Re: Trees: maintaining pathnames