pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Volpe <volpe.mark@epamail.epa.gov>
To: Ang Chin Han <angch@pintoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Rules aren't doing what I expect
Date: Thu, 10 Aug 2000 10:22:47 -0400
Message-ID: <3992BAB7.AE1D4FC3@epamail.epa.gov> (raw)
References: <399180FD.2ACF8B2D@epamail.epa.gov>
	<20000810101820.A8537@pintoo.com>

The actual trigger function I'm working with is over two screens long and
rather expensive to be calling twice! Perhaps I need to add another trigger
that updates the log table with the correct values after the fact. Recursive
triggers, fun! Thanks for the help,

Mark

Ang Chin Han wrote:
> 
> Either somehow rewrite your trigger as a rule, or stick another
> trigger to change the value before getting into your log table.
> You might be able to reuse your trigger function, I think, just
> point the trigger to that function. A bit inefficient, since it
> gets called twice.



view thread (5+ messages)  latest in thread

Message-ID: <3992BAB7.AE1D4FC3@epamail.epa.gov>
Permalink:  ../3992BAB7.AE1D4FC3@epamail.epa.gov/
Also on:    postgresql.org/message-id/3992BAB7.AE1D4FC3@epamail.epa.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: volpe.mark@epamail.epa.gov, angch@pintoo.com
  Subject: Re: Rules aren't doing what I expect
  In-Reply-To: <3992BAB7.AE1D4FC3@epamail.epa.gov>
  References: <399180FD.2ACF8B2D@epamail.epa.gov> <20000810101820.A8537@pintoo.com> <3992BAB7.AE1D4FC3@epamail.epa.gov>

* 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