PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
rewriteSupport.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * rewriteSupport.h
4  *
5  *
6  *
7  * Portions Copyright (c) 1996-2017, 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 
20 extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
21 
22 extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
23 
24 extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
25 
26 #endif /* REWRITESUPPORT_H */
Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok)
unsigned int Oid
Definition: postgres_ext.h:31
bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName)
void SetRelationRuleStatus(Oid relationId, bool relHasRules)