From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Adding a column to a VIEW which has dependent objects. |
Date: | 2004-01-12 16:34:33 |
Message-ID: | Pine.LNX.4.33.0401120934150.19667-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Sat, 10 Jan 2004, Tom Lane wrote:
> Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> writes:
> > How do people extend a parent view which has
> > lot of dependent views?
> > The parent view cannot be dropped because that will
> > require recreating a dozen of dependent views.
>
> You're out of luck, you'll have to drop and remake them all.
> In future we could think about some kind of ALTER VIEW ADD COLUMN
> operation, but it ain't there now.
>
> (I suppose if you were really desperate you could think about manually
> hacking the system catalogs, but this would be pretty risky on a
> production database.)
>
> > Also is there an easy way of dumping the definitions
> > of all the dependent views of a given object.
>
> You can chase the links in pg_depend to see what the dependent objects
> are, but extracting their definitions would be a tad harder ...
Note that the definitions for views are stored in pg_views as well.
From | Date | Subject | |
---|---|---|---|
Next Message | Sai Hertz And Control Systems | 2004-01-12 16:47:42 | Re: Triggers |
Previous Message | Peter Eisentraut | 2004-01-12 16:33:54 | Re: Triggers |