Re: questions on rules - Mailing list pgsql-general

From Timothy Perrigo
Subject Re: questions on rules
Date
Msg-id 028432E9-9848-11D8-9D05-000A95C4F0A2@wernervas.com
Whole thread Raw
In response to Re: questions on rules  (Richard Huxton <dev@archonet.com>)
Responses Re: questions on rules
List pgsql-general
Thanks for the reply.  Do you know if triggers defined on a base table
fire for operations on inherited tables?  (I.e., if I have an after
insert trigger on table "base", and a table "derived" that inherits
from base, will inserts into derived cause the trigger on base to
fire?)  If so (this is the behavior I would like), is there a way to
get the tableoid of the table which caused the trigger to fire?

I really appreciate the assistance.

Tim

On Apr 27, 2004, at 7:26 AM, Richard Huxton wrote:

> On Monday 26 April 2004 20:12, Timothy Perrigo wrote:
>> I'm trying to set up some basic rules to log inserts, updates, and
>> deletes to tables in an inheritance hierarchy (by inserting records
>> into a log table), and I've got a couple of questions.
>
> I think you want to look at triggers rather than rules here.
>
> --
>   Richard Huxton
>   Archonet Ltd
>


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: questions on rules
Next
From: Bruce Momjian
Date:
Subject: Re: thread_test.c problems