OSDN Git Service

Add a missing_ok argument to get_object_address().
[pg-rex/syncrep.git] / src / include / rewrite / rewriteSupport.h
1 /*-------------------------------------------------------------------------
2  *
3  * rewriteSupport.h
4  *
5  *
6  *
7  * Portions Copyright (c) 1996-2011, 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                                           bool relIsBecomingView);
24
25 extern Oid      get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
26 extern Oid      get_rewrite_oid_without_relid(const char *rulename,
27                                                                                   Oid *relid, bool missing_ok);
28
29 #endif   /* REWRITESUPPORT_H */