using a self referencing table - Mailing list pgsql-sql

From drfrog@smartt.com
Subject using a self referencing table
Date
Msg-id 3974805D.6C33895E@smartt.com
Whole thread Raw
List pgsql-sql
i have a table with this structure

name (varchar)|category id (int4)|parent category id (int4)|leaf node
(bool)

im trying to make a perl script that should tree the info

parent catsubcat    subcat2    subcat2subcat        subcat2
...


but im having troubles wrapping my head around this

im using the Pg modules to access postgres

if anyone has any suggestions please lemme know thanks!


pgsql-sql by date:

Previous
From: Tubagus Nizomi
Date:
Subject: describe table in 7.0.2
Next
From: JanWieck@t-online.de (Jan Wieck)
Date:
Subject: Re: Median