summaryrefslogtreecommitdiff
path: root/src/include/rewrite/rewriteSupport.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-08-05 15:25:36 +0000
committerRobert Haas <rhaas@postgresql.org>2010-08-05 15:25:36 +0000
commitfd1843ff8979c0461fb3f1a9eab61140c977e32d (patch)
tree9a4201b5ddc009b89ce7385470b7b7fa9eacf87d /src/include/rewrite/rewriteSupport.h
parent2a6ef3445c73473edb222abf108b323fb7f002dc (diff)
Standardize get_whatever_oid functions for other object types.
- Rename TSParserGetPrsid to get_ts_parser_oid. - Rename TSDictionaryGetDictid to get_ts_dict_oid. - Rename TSTemplateGetTmplid to get_ts_template_oid. - Rename TSConfigGetCfgid to get_ts_config_oid. - Rename FindConversionByName to get_conversion_oid. - Rename GetConstraintName to get_constraint_oid. - Add new functions get_opclass_oid, get_opfamily_oid, get_rewrite_oid, get_rewrite_oid_without_relid, get_trigger_oid, and get_cast_oid. The name of each function matches the corresponding catalog. Thanks to KaiGai Kohei for the review.
Diffstat (limited to 'src/include/rewrite/rewriteSupport.h')
-rw-r--r--src/include/rewrite/rewriteSupport.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/rewrite/rewriteSupport.h b/src/include/rewrite/rewriteSupport.h
index cafb348b9b6..2212fd12b5b 100644
--- a/src/include/rewrite/rewriteSupport.h
+++ b/src/include/rewrite/rewriteSupport.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/rewrite/rewriteSupport.h,v 1.32 2010/01/02 16:58:08 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/rewrite/rewriteSupport.h,v 1.33 2010/08/05 15:25:36 rhaas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,4 +22,7 @@ extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
extern void SetRelationRuleStatus(Oid relationId, bool relHasRules,
bool relIsBecomingView);
+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);
+
#endif /* REWRITESUPPORT_H */