From: Richard Huxton <dev@archonet.com>
To: Jean-Luc Lachance <jllachan@nsd.ca>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Rules/Trigges Trade-offs
Date: Fri, 6 Dec 2002 16:31:06 +0000
Message-ID: <200212061631.06077.dev@archonet.com> (raw)
In-Reply-To: <3DF0CA63.84F4D48@nsd.ca>
References: <7C760DAA511DC74B99E7D22189F786F1906DB0@MAIL01.stbernard.com>
<3C90F994.3080605@joeconway.com>
<3DF0CA63.84F4D48@nsd.ca>
On Friday 06 Dec 2002 4:03 pm, Jean-Luc Lachance wrote:
> Hi all!
>
> Is there a guideline on the use of rules compared to triggers when both
> can be use to achieve the same result?
If I can use rules I do. Rules rewrite the query so are processed once,
whereas triggers get processed for every row.
--
Richard Huxton
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: dev@archonet.com, jllachan@nsd.ca
Subject: Re: Rules/Trigges Trade-offs
In-Reply-To: <200212061631.06077.dev@archonet.com>
* 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