Re: Tables cannot have INSTEAD OF triggers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Tables cannot have INSTEAD OF triggers
Date
Msg-id 1464.1427910970@sss.pgh.pa.us
Whole thread Raw
In response to Re: Tables cannot have INSTEAD OF triggers  (Andres Freund <andres@anarazel.de>)
Responses Re: Tables cannot have INSTEAD OF triggers
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2015-04-01 13:29:33 -0400, Tom Lane wrote:
>> WHEN won't help; if there are any INSTEAD OF triggers, no insert will
>> happen, whether the triggers actually fire or not.

> Well, right now it doesn't work at all. It seems pretty reasonable to
> define things so that the insert happens normally if there's no matching
> INSTEAD OF trigger.

It would absolutely *not* be reasonable for WHEN conditions for triggers
on tables to work completely differently than they do for triggers on
views.  That ship's sailed.
        regards, tom lane



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: Auditing extension for PostgreSQL (Take 2)
Next
From: Merlin Moncure
Date:
Subject: Re: proposal: row_to_array function