1 /*-------------------------------------------------------------------------
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
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 */