agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@CS.Berkeley.EDU>
To: LI HUA <huli@slate.Mines.Colorado.EDU>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: rule
Date: Thu, 21 Jul 94 01:36:26 -0700
Message-ID: <199407210836.BAA14633@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9407201725.AA10615@slate.Mines.Colorado.EDU>
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.
==============================================================================
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, huli@slate.Mines.Colorado.EDU
Subject: Re: rule
In-Reply-To: <199407210836.BAA14633@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