1 /*-------------------------------------------------------------------------
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/rewrite/rewriteSupport.h
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
);
24 extern Oid
get_rewrite_oid(Oid relid
, const char *rulename
, bool missing_ok
);
26 #endif /* REWRITESUPPORT_H */