Re: Statement-level triggers and inheritance - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Statement-level triggers and inheritance
Date
Msg-id 22919.1228151368@sss.pgh.pa.us
Whole thread Raw
In response to Re: Statement-level triggers and inheritance  ("Greg Sabino Mullane" <greg@turnstep.com>)
Responses Re: Statement-level triggers and inheritance  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-hackers
"Greg Sabino Mullane" <greg@turnstep.com> writes:
> However, I strongly lean towards the behavior in this case being to only
> fire the parent statement-level trigger. I could support the other way as
> well: I'm not going to add any triggers to the children anyway, so as long
> as the parent fires, I'll be happy. Right now, this is a serious bug for
> my app, as there is no INSERT INTO ONLY syntax, and thus there is no way
> to effect a statement-level trigger using an insert on a table that is
> inherited from. My workaround is to insert and then update all the rows.

You're not making a lot of sense here, because INSERT always affects
exactly the named table.  It's UPDATE and DELETE where the behavior
is debatable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Hitoshi Harada"
Date:
Subject: Re: Windowing Function Patch Review -> Standard Conformance
Next
From: Tom Lane
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Add support for matching wildcard server certificates to the new