Re: Inheritance and such

From: Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inheritance and such
Date: 2005-04-03 20:12:45
Message-ID: 20050403201245.GA25544@sources.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 01, 2005 at 09:51:25AM -0600,
John Hughes <johnh(at)wetleads(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Schuchardt 2005-04-03 20:43:20 Re: Inheritance and such
Previous Message Randall Perry 2005-04-03 18:52:53 plpgsql -- any '+' ,'-' operators for INET?