recursive views

From: Michael Meskes <meskes(at)topsystem(dot)de>
To: pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker)
Subject: recursive views
Date: 1998-04-16 14:29:09
Message-ID: 199804161429.QAA19015@gauss.topsystem.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I had some time during vacation to thing about postgresql. And here's the
feature I'd really like to see. This one would put us miles in front of all
others: recursive view definitions.

Just one short example:

There is that well-known parent relation: par (parent, child). The view anc
now should list all ancestors:

create view anc as
select parent as ancestor, child as person from par
union
select anc.ancestor as ancestor, par.child as person
from anc, par
where anc.person = par.parent;

What do you guys think of this idea? How much work would it be to implement
it?

Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-04-16 14:29:26 [Fwd: In the Soup]
Previous Message Thomas G. Lockhart 1998-04-16 13:57:14 Re: [HACKERS] Re: [PATCHES] ecpg patch