Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id BAA03607 for postgres-redist; Thu, 21 Jul 1994 01:36:33 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199407210836.BAA03607@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.149.14]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id BAA03597 for <postgres@postgres.Berkeley.EDU>; Thu, 21 Jul 1994 01:36:32 -0700
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.4/8.1B) with SMTP id BAA14633; Thu, 21 Jul 1994 01:36:27 -0700
Message-Id: <199407210836.BAA14633@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: huli@slate.Mines.Colorado.EDU (LI HUA )
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: rule 
Reply-To: aoki@CS.Berkeley.EDU (Paul M. Aoki)
In-reply-to: Your message of Wed, 20 Jul 1994 11:25:42 -0600 
	     <9407201725.AA10615@slate.Mines.Colorado.EDU> 
Date: Thu, 21 Jul 94 01:36:26 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Thu, 21 Jul 94 01:36:32 -0700
Resent-XMts: smtp

huli@slate.Mines.Colorado.EDU (LI HUA ) writes:
> Hi, I defined a couple of rules, but I can't find
> the command to display the rules which I already
> made.

terse advice:

write it down (at least for rewrite rules).

less-terse advice:

for instance-level rules, you can say
	retrieve (pg_prs2rule.all)
and a bunch of stuff (halfway-explained in the back of the ref 
manual) comes out.  part of this stuff is the text of the rule.

for rewrite rules, the human-readable text of the rule is never 
stored anywhere, so unless you can read the internal query plan 
format, you're pretty much out of luck.  you can get the query
plans by 
	retrieve (pg_rewrite.all)
--
  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.
==============================================================================
