Re: disallow LOCK on a view - the Tom Lane remix

Поиск
Список
Период
Сортировка
От Mark Hollomon
Тема Re: disallow LOCK on a view - the Tom Lane remix
Дата
Msg-id 39ACFB7A.CCA577ED@americasm01.nt.com
обсуждение исходный текст
Ответ на disallow LOCK on a view - the Tom Lane remix  (Mark Hollomon <mhh@mindspring.com>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Backend-internal SPI operations
Следующее
От: "Mark Hollomon"
Дата:
Сообщение: Re: Backend-internal SPI operations