Re: disallow LOCK on a view - the Tom Lane remix - Mailing list pgsql-hackers

From Mark Hollomon
Subject Re: disallow LOCK on a view - the Tom Lane remix
Date
Msg-id 39ACFB7A.CCA577ED@americasm01.nt.com
Whole thread Raw
In response to disallow LOCK on a view - the Tom Lane remix  (Mark Hollomon <mhh@mindspring.com>)
List pgsql-hackers
Tom Lane wrote:
> 
> BTW, this seems to be a counterexample for my prior suggestion that
> pg_class should have a "relviewrule" OID column.  If it did, you'd
> have to update that field when doing something like the above.
> Pain-in-the-neck factor looms large...
> 

I was already considering the possiblity of a 'ALTER VIEW' command that
would effectively allow you do that.

CREATE VIEW bar as select * from foo1;
ALTER VIEW bar as select * from foo2;

It would update the "relviewrule" field.
-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Backend-internal SPI operations
Next
From: "Mark Hollomon"
Date:
Subject: Re: Backend-internal SPI operations