From: Oleg Samoylov <olleg@telecom.mipt.ru>
To: pgsql-sql@postgresql.org
Subject: Re: Dynamic SELECT condition
Date: Mon, 03 Mar 2003 16:30:31 +0300
Message-ID: <b3vldk$1a47$1@news.hub.org> (raw)
In-Reply-To: <20030224175300.GC2841@pirmabanka.lv>
References: <20030224175300.GC2841@pirmabanka.lv>
Victor Yegorov wrote:
> I mean, I know the id of a root object, it's 3. If I'll extract with
> condition parent_id =3D 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 =3D=3D this_level_child_id) > 0, select parent_i=
> d, child_id.
>
> I hope you'll understand my problem.
As I can undestand you problem, I can use function returned resultset
for this purpose.
--
Olleg Samoylov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: olleg@telecom.mipt.ru
Subject: Re: Dynamic SELECT condition
In-Reply-To: <b3vldk$1a47$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox