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)
Список
Дерево обсуждения
Re: Relation in tables KÖPFERL Robert <robert.koepferl@sonorys.at>
> 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
Дата: