Re: questions on rules

From: Timothy Perrigo <tperrigo(at)wernervas(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: questions on rules
Date: 2004-04-27 12:40:05
Message-ID: 028432E9-9848-11D8-9D05-000A95C4F0A2@wernervas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-04-27 12:49:17 Re: thread_test.c problems
Previous Message Richard Huxton 2004-04-27 12:26:35 Re: questions on rules