Header And Logo

PostgreSQL
| The world's most advanced open source database.

rewriteSupport.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * rewriteSupport.h
00004  *
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * src/include/rewrite/rewriteSupport.h
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef REWRITESUPPORT_H
00015 #define REWRITESUPPORT_H
00016 
00017 /* The ON SELECT rule of a view is always named this: */
00018 #define ViewSelectRuleName  "_RETURN"
00019 
00020 extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
00021 
00022 extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
00023 
00024 extern Oid  get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
00025 extern Oid get_rewrite_oid_without_relid(const char *rulename,
00026                               Oid *relid, bool missing_ok);
00027 
00028 #endif   /* REWRITESUPPORT_H */