Re: Sorting with materialized paths - Mailing list pgsql-general

From Tom Lane
Subject Re: Sorting with materialized paths
Date
Msg-id 4000.1273420056@sss.pgh.pa.us
Whole thread Raw
In response to Sorting with materialized paths  (Ovid <curtis_ovid_poe@yahoo.com>)
Responses Re: Sorting with materialized paths
List pgsql-general
Ovid <curtis_ovid_poe@yahoo.com> writes:
> My apologies. This isn't PG-specific, but since this is running on PostgreSQL 8.4, maybe there are specific features
whichmight help. 
> I have a tree structure in a table and it uses materialized paths to allow me to find children quickly. However, I
alsoneed to sort the results depth-first, as one would expect with threaded forum replies. 

I think contrib/ltree might help you here.  However, it seems to sort
node names textually rather than numerically, so you might need to
change it a bit for your own purposes.

            regards, tom lane

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: PG 8.3.7. Windows 7. select inet_server_addr() returns ::1 - the loopback adrs.
Next
From: Tom Lane
Date:
Subject: Re: Urgent please: PGPOOL II 2.3.3 hang in ssl mode