From fd1843ff8979c0461fb3f1a9eab61140c977e32d Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 5 Aug 2010 15:25:36 +0000 Subject: 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. --- src/backend/utils/adt/regproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/adt/regproc.c') diff --git a/src/backend/utils/adt/regproc.c b/src/backend/utils/adt/regproc.c index b050d02a067..0594c3c8695 100644 --- a/src/backend/utils/adt/regproc.c +++ b/src/backend/utils/adt/regproc.c @@ -13,7 +13,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.113 2010/02/14 18:42:16 rhaas Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.114 2010/08/05 15:25:35 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -1096,7 +1096,7 @@ regconfigin(PG_FUNCTION_ARGS) */ names = stringToQualifiedNameList(cfg_name_or_oid); - result = TSConfigGetCfgid(names, false); + result = get_ts_config_oid(names, false); PG_RETURN_OID(result); } @@ -1206,7 +1206,7 @@ regdictionaryin(PG_FUNCTION_ARGS) */ names = stringToQualifiedNameList(dict_name_or_oid); - result = TSDictionaryGetDictid(names, false); + result = get_ts_dict_oid(names, false); PG_RETURN_OID(result); } -- cgit v1.2.3