| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> | 
|---|---|
| To: | Nils Zonneveld <nils(at)mbit(dot)nl> | 
| Cc: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Re: Re: PG rules! | 
| Date: | 2001-07-23 21:27:53 | 
| Message-ID: | 200107232127.f6NLRrV21384@candle.pha.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
See my book chapter at:
http://www.postgresql.org/docs/awbook.html
It discusses when to use each.  Basically triggers are for modifying the
row you just inserted/updated, while Rules are for referring to other
tables.
> 
> 
> "Dr. Evil" wrote:
> > 
> > I just want to say, that PG is an awesome thing.  I'm finding new uses
> > for constraints of various kinds to ensure data integrity in my DB.
> > Constraints will really make the whole application more solid, because
> > programming errors elsewhere still won't allow corrupt data to get
> > into the DB.
> 
> And I thought it was a question about rules :-) Speaking of which can
> someone tell me in which circumstances to use rules and in what
> circumstances to use triggers?
> 
> Nils
> -- 
> Alles van waarde is weerloos
> Lucebert
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
> 
-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ryan Mahoney | 2001-07-23 21:29:56 | RE: dual processors | 
| Previous Message | Ryan Mahoney | 2001-07-23 21:16:50 | Re: dual processors |