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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE TRIGGER on view WAS: Re: Relation in tables
Дата
Msg-id 28633.1108589994@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPDATE TRIGGER on view WAS: Re: Relation in tables  (PFC <lists@boutiquenumerique.com>)
Список pgsql-sql
PFC <lists@boutiquenumerique.com> writes:
> 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.

This might work for INSERT but I really doubt it'll work for UPDATE or
DELETE.

You may be able to make it work with rules, though there are lots of
pitfalls in that approach.
        regards, tom lane


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

Предыдущее
От: PFC
Дата:
Сообщение: Re: Order of columns in a table important in a stored procedure?
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: Making NULL entries appear first when ORDER BY ASC