Re: Rules/Trigges Trade-offs

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Rules/Trigges Trade-offs
Date: 2002-12-06 16:34:37
Message-ID: 200212061634.gB6GYbt02565@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

My book has a section on that:

http://www.postgresql.org/docs/awbook.html

Triggers are mostly for testing/modifying the row being
inserted/updated, while rules are better for affecting other rows or
other tables.

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?
>
> JLL
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nick Fankhauser 2002-12-06 17:08:38 Re: proper db standard
Previous Message Richard Huxton 2002-12-06 16:31:06 Re: Rules/Trigges Trade-offs

Browse pgsql-sql by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-12-06 17:30:15 Re: Rules/Trigges Trade-offs
Previous Message Richard Huxton 2002-12-06 16:31:06 Re: Rules/Trigges Trade-offs