Re: Dynamic SELECT condition - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: Dynamic SELECT condition
Date
Msg-id 20030302044643.GA18183@wolff.to
Whole thread Raw
In response to Dynamic SELECT condition  ("Victor Yegorov" <viy@pirmabanka.lv>)
Responses Re: Dynamic SELECT condition  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
List pgsql-sql
On Mon, Feb 24, 2003 at 19:53:00 +0200, Victor Yegorov <viy@pirmabanka.lv> wrote:
>  
> I mean, I know the id of a root object, it's 3. If I'll extract with
> condition parent_id = 3, then I'll get only 2 rows. I'd like to have a
> recursive result set - while there are records in the table for which
> count(next_level_parent_id == this_level_child_id) > 0, select parent_id, child_id.

contrib/tablefunc will probably allow you to do what you want.


pgsql-sql by date:

Previous
From: Joe Conway
Date:
Subject: Re: Any limitation in size for return result from SELECT?
Next
From: Tom Lane
Date:
Subject: Re: