Re: WIP: Triggers on VIEWs - Mailing list pgsql-hackers

From Bernd Helmle
Subject Re: WIP: Triggers on VIEWs
Date
Msg-id 3D83DE881171345EC3EC804F@amenophis
Whole thread Raw
In response to Re: WIP: Triggers on VIEWs  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List 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 by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: ask for review of MERGE
Next
From: subham@cse.iitb.ac.in
Date:
Subject: Re: Needs Suggestion