| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | meskes(at)topsystem(dot)de (Michael Meskes) |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] recursive views |
| Date: | 1998-04-16 17:22:32 |
| Message-ID: | 199804161722.NAA22932@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | 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?
Ah, you want views of UNION's, and want to specify the view in the
query. Yikes, no idea on how hard that would be.
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Good | 1998-04-16 17:47:42 | Re: [HACKERS] [Fwd: In the Soup] |
| Previous Message | Bruce Momjian | 1998-04-16 17:21:55 | Re: [HACKERS] recursive views |