Re: questions on rules

Поиск
Список
Период
Сортировка
От Timothy Perrigo
Тема Re: questions on rules
Дата
Msg-id 028432E9-9848-11D8-9D05-000A95C4F0A2@wernervas.com
обсуждение исходный текст
Ответ на Re: questions on rules  (Richard Huxton <dev@archonet.com>)
Ответы Re: questions on rules  (Richard Huxton <dev@archonet.com>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: questions on rules
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: thread_test.c problems