From: Tom Lane <tgl@sss.pgh.pa.us>
To: marc@oscar.eng.cv.net
Cc: pgsql-sql@postgresql.org
Subject: Re: should this be a trigger or a rule?
Date: Sat, 15 Dec 2001 21:04:20 -0500
Message-ID: <11551.1008468260@sss.pgh.pa.us> (raw)
In-Reply-To: <slrna1npu6.1s6p.marc@oscar.eng.cv.net>
References: <slrna1npu6.1s6p.marc@oscar.eng.cv.net>
marc@oscar.eng.cv.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, marc@oscar.eng.cv.net
Subject: Re: should this be a trigger or a rule?
In-Reply-To: <11551.1008468260@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox