agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@cs.berkeley.edu>
To: Aarti Pai <paiaa@euler.mcs.utulsa.edu>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: rule execution
Date: Sun, 12 Feb 95 19:28:36 -0800
Message-ID: <199502130328.TAA02087@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9502122258.AA00276@nankipoo.utulsa.edu>

paiaa@euler.mcs.utulsa.edu (Aarti Pai) writes:
> I am new to Postgres.  I am using the 4.2 version.  I've defined
> several rules on a single relation.  I would like to execute a
> certain rule.  How do I go about doing this?

the only way to execute a rule is to fire it (i.e., by running a
query that matches the condition under which it is supposed to be
triggered).

if two rules are defined in such a way that you cannot formulate a
query that does not trigger one without triggered the other, then you
lose.  there is no way to turn off rules temporarily (though you can
remove them, of course).
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



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: postgres@postgres.berkeley.edu
  Cc: aoki@cs.berkeley.edu, paiaa@euler.mcs.utulsa.edu
  Subject: Re: rule execution
  In-Reply-To: <199502130328.TAA02087@faerie.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox