usage for 'with recursive'? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject usage for 'with recursive'?
Date
Msg-id 9e4684ce0703010102p2d5743b9o25fff63e03449b08@mail.gmail.com
Whole thread Raw
Responses Re: usage for 'with recursive'?  (Kenneth Downs <ken@secdat.com>)
List pgsql-general
there have been a discussions about how posdtgresql needs 'with
recursive' queries.

not that i would like to object the idea (new feature is always  a
good thing), but is anybody able to show me real usage of this kind of
queries?
as i see it the only usage for 'with recursive' is when one have a
tree-structure stored as:
create table objects (id serial primary key, parent_id int references
objects (id), ...)
and one want to do some "deep queries" without client-side recursion/loops.

is it the only thing 'with recursive' is useful for? i mean it sounds
unrealistic given that better data-structures for tree hierarchies
have been proposed and implemented.

best regards,

depesz

--
http://www.depesz.com/ - nowy, lepszy depesz

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: PG periodic Error on W2K
Next
From: hengky liwandouw
Date:
Subject: Please Help ! Error with Access 2003