Return-Path: owner-postman
Received: from ucsd.edu (ucsd.edu [132.239.254.201]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id MAA01262 for <postgres-redist@nobozo.CS.Berkeley.EDU>; Mon, 13 Feb 1995 12:16:52 -0800
Received: from odf by ucsd.edu; id MAA16975
	sendmail 8.6.9/UCSD-2.2-sun via SMTP
	Mon, 13 Feb 1995 12:16:44 -0800 for <postgres-redist@nobozo.CS.Berkeley.EDU>
Received: by odf (5.x/SMI-SVR4)
	id AA05489; Mon, 13 Feb 1995 11:11:12 -0800
Received: from ucsd.edu by odf (5.x/SMI-SVR4)
	id AA01436; Sun, 12 Feb 1995 19:31:25 -0800
Received: from nobozo.CS.Berkeley.EDU by ucsd.edu; id TAA23034
	sendmail 8.6.9/UCSD-2.2-sun via ESMTP
	Sun, 12 Feb 1995 19:31:55 -0800
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id TAA26632 for postgres-redist; Sun, 12 Feb 1995 19:28:41 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199502130328.TAA26632@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.37.53]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id TAA26622 for <postgres@postgres.Berkeley.EDU>; Sun, 12 Feb 1995 19:28:40 -0800
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id TAA02087; Sun, 12 Feb 1995 19:28:36 -0800
Message-Id: <199502130328.TAA02087@faerie.CS.Berkeley.EDU>
X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: paiaa@euler.mcs.utulsa.edu (Aarti Pai)
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: rule execution 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-Reply-To: Your message of Sun, 12 Feb 1995 16:58:02 -0600 
	     <9502122258.AA00276@nankipoo.utulsa.edu> 
Date: Sun, 12 Feb 95 19:28:36 -0800
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Sun, 12 Feb 95 19:28:41 -0800
Resent-Xmts: smtp

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/
