pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Victor Yegorov <viy@pirmabanka.lv>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dynamic SELECT condition
Date: Sat, 1 Mar 2003 22:46:43 -0600
Message-ID: <20030302044643.GA18183@wolff.to> (raw)
In-Reply-To: <20030224175300.GC2841@pirmabanka.lv>
References: <20030224175300.GC2841@pirmabanka.lv>

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.



view thread (7+ messages)  latest in thread

Message-ID: <20030302044643.GA18183@wolff.to>
Permalink:  ../20030302044643.GA18183@wolff.to/
Also on:    postgresql.org/message-id/20030302044643.GA18183@wolff.to

 · 

reply

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: bruno@wolff.to, viy@pirmabanka.lv
  Subject: Re: Dynamic SELECT condition
  In-Reply-To: <20030302044643.GA18183@wolff.to>

* 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