Re: Trigger definition . . . puzzled

From: "Rolf A(dot) de By" <deby(at)itc(dot)nl>
To:
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Trigger definition . . . puzzled
Date: 2007-12-13 20:22:14
Message-ID: 47619476.9060100@itc.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ouch, that hurts! It suddenly dawns on me . . . Big difference on table
that you specify and table where it
actually takes effect. Confusing at first. Thanks a million, Tom.
> "Rolf A. de By" <deby(at)itc(dot)nl> writes:
>
>> Yes, this is an inheritance set-up. But actually no: I am executing all
>> my data changes against the parent table, and want the trigger on that
>> parent table to fire for an insert on the parent table as it does. But
>> I also want the trigger to fire when an update on the parent table is
>> executed, and this does not happen.
>>
>
> There is no update on any row in the parent table. The update is on a
> row in a child table.
>
> regards, tom lane
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Midgley 2007-12-13 21:11:55 Re: Query design assistance - getting daily totals
Previous Message Tom Lane 2007-12-13 16:33:53 Re: Trigger definition . . . puzzled