Re: should this be a trigger or a rule?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: marc(at)oscar(dot)eng(dot)cv(dot)net (Marc Spitzer)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: should this be a trigger or a rule?
Date: 2001-12-16 02:04:20
Message-ID: 11551.1008468260@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

marc(at)oscar(dot)eng(dot)cv(dot)net (Marc Spitzer) writes:
> I have 3 tables: pings, curr_state, ping_log and here is what I want
> to happen:
> when I insert a row into pings it checks to see if the ping was
> sucessful or not.

Anything that's most naturally described as driven by insert (or update
or delete) of individual rows is best done as a trigger, IMHO.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marc Spitzer 2001-12-16 02:25:51 Re: should this be a trigger or a rule?
Previous Message Marc Spitzer 2001-12-16 00:16:52 should this be a trigger or a rule?