Re: simple trigger question ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: simple trigger question ...
Date: 2003-04-03 14:38:07
Message-ID: 28222.1049380687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Marc G. Fournier" <scrappy(at)hub(dot)org> writes:
> 'K, that makes it workable ... final question (I hope!) ... RULEs vs
> TRIGGERs? I ended up doing it as a RULE, since I could do it without a
> function ... but is there a reason why that is a Bad Idea? Or in a case
> like this, it doesn't really matter?

A lot of people have found that rules don't behave quite the way they
want, particularly with regard to things like the number of times that
side-effects happen. Better test it out.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Walter McGinnis 2003-04-03 14:47:04 Re: pesky plpgsql
Previous Message Rod Taylor 2003-04-03 14:26:48 Re: simple trigger question ...