Re: Rules/Trigges Trade-offs - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Rules/Trigges Trade-offs
Date
Msg-id 200212061634.gB6GYbt02565@candle.pha.pa.us
Whole thread Raw
In response to Rules/Trigges Trade-offs  (Jean-Luc Lachance <jllachan@nsd.ca>)
Responses Re: Rules/Trigges Trade-offs  (Josh Berkus <josh@agliodbs.com>)
List 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Rules/Trigges Trade-offs
Next
From: Jean-Luc Lachance
Date:
Subject: Re: Rules/Trigges Trade-offs