Re: Inheritance and such - Mailing list pgsql-general

From Daniel Schuchardt
Subject Re: Inheritance and such
Date
Msg-id d2pkgm$1n1s$1@news.hub.org
Whole thread Raw
In response to Re: Inheritance and such  (Stephane Bortzmeyer <bortzmeyer@nic.fr>)
List pgsql-general
Stephane Bortzmeyer schrieb:

>
>I have a problem which MAY be in the same category.
>
>CREATE TABLE base (
> id serial not null primary key,
> <some base columns>
>);
>
>CREATE TABLE specialized (
><some specialized columns>
>) INHERITS base;
>
>Now, I try to set up a trigger AFTER UPDATE ON base but, when I update
>"specialized", the trigger is not called. Same thing with CREATE or
>DELETE. I have to define the trigger to be AFTER UPDATE ON
>specialized. Is it normal?
>
>
>
Yes, thats known.

You have to define a trigger on each child table. You can point that
trigger on the same function.

Daniel.

pgsql-general by date:

Previous
From: "Karl O. Pinc"
Date:
Subject: Strange plpgsql performance -- arithmetic, numeric() type, arrays
Next
From: Pavel Stehule
Date:
Subject: Re: How to query pgsql from a BASH script ?