1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* rewriteSupport.h
|
1997-09-07 07:04:48 +02:00
|
|
|
*
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2011-01-01 19:18:15 +01:00
|
|
|
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/rewrite/rewriteSupport.h
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef REWRITESUPPORT_H
|
|
|
|
#define REWRITESUPPORT_H
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2002-04-20 01:13:54 +02:00
|
|
|
/* The ON SELECT rule of a view is always named this: */
|
|
|
|
#define ViewSelectRuleName "_RETURN"
|
2001-08-12 23:35:19 +02:00
|
|
|
|
2002-04-20 01:13:54 +02:00
|
|
|
extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2000-09-29 20:21:41 +02:00
|
|
|
extern void SetRelationRuleStatus(Oid relationId, bool relHasRules,
|
2001-03-22 05:01:46 +01:00
|
|
|
bool relIsBecomingView);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2010-08-05 17:25:36 +02:00
|
|
|
extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
|
|
|
|
extern Oid get_rewrite_oid_without_relid(const char *rulename, Oid *relid);
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* REWRITESUPPORT_H */
|