diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-12 21:35:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-12 21:35:19 +0000 |
commit | 1b5cffacdffaf1cdedb60ff4bc160e65261eb4eb (patch) | |
tree | c34ded33b39c6b0924f00927313f8b9192ec5939 /src/include/rewrite/rewriteSupport.h | |
parent | a0c449a0f8bc29326c7fa9b49c2198a92e35681a (diff) |
Make ALTER TABLE RENAME on a view rename the view's on-select rule too.
Needed to keep pg_dump from getting confused.
Diffstat (limited to 'src/include/rewrite/rewriteSupport.h')
-rw-r--r-- | src/include/rewrite/rewriteSupport.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/rewrite/rewriteSupport.h b/src/include/rewrite/rewriteSupport.h index cda3d0f5d1c..81390ac209d 100644 --- a/src/include/rewrite/rewriteSupport.h +++ b/src/include/rewrite/rewriteSupport.h @@ -7,14 +7,16 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: rewriteSupport.h,v 1.16 2001/03/22 04:01:04 momjian Exp $ + * $Id: rewriteSupport.h,v 1.17 2001/08/12 21:35:19 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef REWRITESUPPORT_H #define REWRITESUPPORT_H -extern bool IsDefinedRewriteRule(char *ruleName); +extern bool IsDefinedRewriteRule(const char *ruleName); + +extern char *MakeRetrieveViewRuleName(const char *view_name); extern void SetRelationRuleStatus(Oid relationId, bool relHasRules, bool relIsBecomingView); |