pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Spitzer <marc@oscar.eng.cv.net>
To: pgsql-sql@postgresql.org
Subject: Re: should this be a trigger or a rule?
Date: Sat, 15 Dec 2001 21:25:51 -0500
Message-ID: <20011215212551.A61980@oscar.eng.cv.net> (raw)
In-Reply-To: <11551.1008468260@sss.pgh.pa.us>
References: <slrna1npu6.1s6p.marc@oscar.eng.cv.net>
	<11551.1008468260@sss.pgh.pa.us>

On Sat, Dec 15, 2001 at 09:04:20PM -0500, Tom Lane wrote:
> 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


Thanks,

One last question, I am using Xemacs to auto format the code 
for me, I have discovered the sql-postgres but that is only 
in the postgres(psql) window not in the where I edit my code 
window.  I get this in lisp by using  M-x load-library then ilisp
ams perl,tcl, C take care of them selves.

Thanks again,

marc



view thread (3+ messages)

Message-ID: <20011215212551.A61980@oscar.eng.cv.net>
Permalink:  ../20011215212551.A61980@oscar.eng.cv.net/
Also on:    postgresql.org/message-id/20011215212551.A61980@oscar.eng.cv.net

 · 

reply

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: marc@oscar.eng.cv.net
  Subject: Re: should this be a trigger or a rule?
  In-Reply-To: <20011215212551.A61980@oscar.eng.cv.net>

* 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