Re: UPDATE TRIGGER on view WAS: Re: Relation in tables

Поиск
Список
Период
Сортировка
От PFC
Тема Re: UPDATE TRIGGER on view WAS: Re: Relation in tables
Дата
Msg-id opsma60jw9th1vuj@musicbox
обсуждение исходный текст
Ответ на UPDATE TRIGGER on view WAS: Re: Relation in tables  ("Keith Worthington" <keithw@narrowpathinc.com>)
Ответы Re: UPDATE TRIGGER on view WAS: Re: Relation in tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql

> And all this time I thought that you couldn't write to a view.
You can't.But you can make it seem so you can.
You can create an ON UPDATE/INSERT trigger on a view which intercepts the  
UPDATE/INSERT to the view (which would otherwise fail) and do whatever you  
want with it, including doing the operation on the real table.
Search for "postgresql materialized views" for some examples.


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

Предыдущее
От: Geoffrey
Дата:
Сообщение: Re: Order of columns in a table important in a stored procedure?
Следующее
От: PFC
Дата:
Сообщение: Re: Order of columns in a table important in a stored procedure?