Re: questions on rules

From: Richard Huxton <dev(at)archonet(dot)com>
To: Timothy Perrigo <tperrigo(at)wernervas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: questions on rules
Date: 2004-04-27 13:18:46
Message-ID: 200404271418.46288.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 27 April 2004 13:40, Timothy Perrigo wrote:
> 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?)

Hmm - don't know this I'm afraid.

> 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?

Here I can help. Check the plpgsql section of the manuals, and there you'll
find a list of special variables available to trigger functions. These
include table and trigger name.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harald Fuchs 2004-04-27 13:19:41 Re: Arbitrary precision modulo operation
Previous Message Bruce Momjian 2004-04-27 12:49:17 Re: thread_test.c problems