1 /*-------------------------------------------------------------------------
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/rewrite/rewriteSupport.h,v 1.30 2008/01/01 19:45:58 momjian Exp $
12 *-------------------------------------------------------------------------
14 #ifndef REWRITESUPPORT_H
15 #define REWRITESUPPORT_H
17 /* The ON SELECT rule of a view is always named this: */
18 #define ViewSelectRuleName "_RETURN"
20 extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
22 extern void SetRelationRuleStatus(Oid relationId, bool relHasRules,
23 bool relIsBecomingView);
25 #endif /* REWRITESUPPORT_H */