Re: POSS. FEATURE REQ: "Dynamic" Views

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: POSS. FEATURE REQ: "Dynamic" Views
Дата
Msg-id 87acj4a07l.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: POSS. FEATURE REQ: "Dynamic" Views  (Ian Harding <harding.ian@gmail.com>)
Ответы Re: POSS. FEATURE REQ: "Dynamic" Views  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
Ian Harding <harding.ian@gmail.com> writes:

> Brand X doesn't do it in their backend either.

If your Brand X is the same as my Brand X then it's worth noting that they
didn't previously do anything sane in their backend. It used to invalidate all
your views and you had to recompile them before they would work again.

I wonder whether it would be saleable to have an option to work around this
"feature". I'm thinking one of two directions:

1) An alternate type of view that just stores the text of the view and is
interpreted at time of use like:

CREATE DYNAMIC VIEW foo AS (SELECT * FROM tab)

or 2) A command to recompile a view which would go back to the original source
and reinterpret it like:

ALTER VIEW foo RECOMPILE

Or I guess you could have the latter and then add the former as a view that
automatically recompiles any time a object it depends on is altered.

--
greg

В списке pgsql-general по дате отправления:

Предыдущее
От: vishal saberwal
Дата:
Сообщение: Re: PQConnectdb SSL (sslmode): Is this a bug
Следующее
От: Tony Caduto
Дата:
Сообщение: Re: Postgresql Function Cookbook/General howto