1/*-------------------------------------------------------------------------
2 *
3 * rewriteSupport.h
4 *
5 *
6 *
7 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/rewrite/rewriteSupport.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef REWRITESUPPORT_H
15#define REWRITESUPPORT_H
16
17/* The ON SELECT rule of a view is always named this: */
18#define ViewSelectRuleName "_RETURN"
19
20extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
21
22extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
23
24extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
25
26#endif /* REWRITESUPPORT_H */
27