Re: Inheritance and such - Mailing list pgsql-general

From Stephane Bortzmeyer
Subject Re: Inheritance and such
Date
Msg-id 20050403201245.GA25544@sources.org
Whole thread Raw
In response to Inheritance and such  (John Hughes <johnh@wetleads.com>)
Responses Re: Inheritance and such  (Daniel Schuchardt <daniel_schuchardt@web.de>)
List pgsql-general
On Fri, Apr 01, 2005 at 09:51:25AM -0600,
 John Hughes <johnh@wetleads.com> wrote
 a message of 49 lines which said:

> I ran into a brick wall when I realized that inheritance in postgres
> isnt really there...

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?

PostgreSQL  7.4


pgsql-general by date:

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