Re: WIP: Triggers on VIEWs

Поиск
Список
Период
Сортировка
От Bernd Helmle
Тема Re: WIP: Triggers on VIEWs
Дата
Msg-id 3D83DE881171345EC3EC804F@amenophis
обсуждение исходный текст
Ответ на Re: WIP: Triggers on VIEWs  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers

--On 23. September 2010 08:59:32 +0100 Dean Rasheed 
<dean.a.rasheed@gmail.com> wrote:

> Yes, I agree. To me this is the least surprising behaviour. I think a
> more common case would be where the trigger computed a value (such as
> the 'last updated' example). The executor doesn't have any kind of a
> handle on the row inserted by the trigger, so it has to rely on the
> function return value to support RETURNING.

I didn't mean to forbid it altogether, but at least to document 
explicitely, that the trigger returns a VIEW's NEW tuple, not the one of 
the base table (and may modify it). But you've already adressed this in 
your doc patches, so nothing to worry about further.

-- 
Thanks
Bernd


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

Предыдущее
От: Marko Tiikkaja
Дата:
Сообщение: Re: ask for review of MERGE
Следующее
От: subham@cse.iitb.ac.in
Дата:
Сообщение: Re: Needs Suggestion