Re: Updateable Views?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Updateable Views?
Дата
Msg-id 873c33mv1z.fsf_-_@stark.xeocode.com
обсуждение исходный текст
Ответы Re: Updateable Views?  (Jonathan Gardner <jgardner@jonathangardner.net>)
Re: Updateable Views?  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
"Scott Marlowe" <smarlowe@qwest.net> writes:

> On Tue, 2004-08-03 at 13:05, CSN wrote:
> > Just wondering, is updateable views slated for a
> > future version of Postgresql? In addition to using
> > rules that is.
> 
> I would think that a basic fleshing out of the logic with some kind of
> stored proc to make the views and triggers would likely get someone
> started on the backend work.  You know, a proof of concept thingy.

I have some fears here. It seems everyone's first thought when they think
about updateable views is to think about constructing rules on the views.

How would that approach help with inline views? Things like:
UPDATE (SELECT a+b AS x, c AS y FROM foo) SET c=1 WHERE x = 10

It seems like starting with these types of views in the backend would be more
productive than implementing something in rules. Once postgres can handle
inline views it should be trivial to handle persistent views just like they're
handled on selects.

-- 
greg



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Open items
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Have you heard? It's 8.0 ...