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

From Josh Berkus
Subject Re: Trees: maintaining pathnames
Date
Msg-id web-1830006@davinci.ethosmedia.com
Whole thread Raw
In response to Trees: maintaining pathnames  (Dan Langille <dan@langille.org>)
Responses Re: Trees: maintaining pathnames  ("Dan Langille" <dan@langille.org>)
List 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 by date:

Previous
From: jasiek@klaster.net
Date:
Subject: Re: Problems invoking psql. Help please.
Next
From: greg@turnstep.com
Date:
Subject: Re: Trees: maintaining pathnames