Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DC493476350 for ; Fri, 6 Dec 2002 11:35:20 -0500 (EST) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by postgresql.org (Postfix) with ESMTP id 97D954762E1 for ; Fri, 6 Dec 2002 11:31:04 -0500 (EST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 18KLNc-00084g-0Y; Fri, 06 Dec 2002 16:31:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 9A203176D5; Fri, 6 Dec 2002 16:31:07 +0000 (GMT) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id F3C851666E; Fri, 6 Dec 2002 16:31:06 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: Jean-Luc Lachance , pgsql-sql Subject: Re: Rules/Trigges Trade-offs Date: Fri, 6 Dec 2002 16:31:06 +0000 User-Agent: KMail/1.4.3 References: <7C760DAA511DC74B99E7D22189F786F1906DB0@MAIL01.stbernard.com> <3C90F994.3080605@joeconway.com> <3DF0CA63.84F4D48@nsd.ca> In-Reply-To: <3DF0CA63.84F4D48@nsd.ca> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212061631.06077.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/73 X-Sequence-Number: 10661 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,=20 whereas triggers get processed for every row. --=20 Richard Huxton