rewriteSupport.h 880 B

12345678910111213141516171819202122232425262728
  1. /*-------------------------------------------------------------------------
  2. *
  3. * rewriteSupport.h
  4. *
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2016, 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. /* The ON SELECT rule of a view is always named this: */
  17. #define ViewSelectRuleName "_RETURN"
  18. extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
  19. extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
  20. extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
  21. extern Oid get_rewrite_oid_without_relid(const char *rulename,
  22. Oid *relid, bool missing_ok);
  23. #endif /* REWRITESUPPORT_H */