From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc G. Fournier <scrappy@hub.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: simple trigger question ...
Date: Thu, 03 Apr 2003 09:38:07 -0500
Message-ID: <28222.1049380687@sss.pgh.pa.us> (raw)
In-Reply-To: <20030403061142.V72033@hub.org>
References: <20030402223933.M71125@hub.org>
<25296.1049341477@sss.pgh.pa.us>
<20030403000605.U71125@hub.org>
<25512.1049343373@sss.pgh.pa.us>
<20030403002922.Y71125@hub.org>
<25618.1049344429@sss.pgh.pa.us>
<20030403061142.V72033@hub.org>
"Marc G. Fournier" <scrappy@hub.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, scrappy@hub.org
Subject: Re: simple trigger question ...
In-Reply-To: <28222.1049380687@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox