diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-08-05 15:25:36 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-08-05 15:25:36 +0000 |
commit | fd1843ff8979c0461fb3f1a9eab61140c977e32d (patch) | |
tree | 9a4201b5ddc009b89ce7385470b7b7fa9eacf87d /src/backend/utils/adt/tsvector_op.c | |
parent | 2a6ef3445c73473edb222abf108b323fb7f002dc (diff) | |
download | postgresql-fd1843ff8979c0461fb3f1a9eab61140c977e32d.tar.gz postgresql-fd1843ff8979c0461fb3f1a9eab61140c977e32d.zip |
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/backend/utils/adt/tsvector_op.c')
-rw-r--r-- | src/backend/utils/adt/tsvector_op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 94c242d9638..4f51cf14362 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.26 2010/01/02 16:57:55 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.27 2010/08/05 15:25:35 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -1326,7 +1326,7 @@ tsvector_update_trigger(PG_FUNCTION_ARGS, bool config_column) (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("text search configuration name \"%s\" must be schema-qualified", trigger->tgargs[1]))); - cfgId = TSConfigGetCfgid(names, false); + cfgId = get_ts_config_oid(names, false); } /* initialize parse state */ |