Re: get_whatever_oid, part 2

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: KaiGai Kohei <kaigai@ak.jp.nec.com>
Cc: pgsql-hackers@postgresql.org
Date: 2010-07-09T13:36:31Z
Lists: pgsql-hackers

Attachments

2010/7/8 KaiGai Kohei <kaigai@ak.jp.nec.com>:
> At the part 1 patch, the object class was entirely matched with
> name of the system catalog.
> E.g, get_namespace_oid(), get_langeage_oid().
>         ^^^^^^^^^            ^^^^^^^^
>           |                      |
>           +--> pg_namespace      +--> pg_language
>
> But some of APIs in the part 2 have different object class name
> from their corresponding system catalog.
>
> How about the following renamings?
>  - get_tsparser_oid() -> get_ts_parser_oid()
>  - get_tsdictionary_oid() -> get_ts_dict_oid()
>  - get_tstemplate_oid() -> get_ts_template_oid()
>  - get_tsconfiguration_oid() -> get_ts_config_oid()
>  - get_rule_oid() -> get_rewrite_oid()
>  - get_rule_oid_without_relid() -> get_rewrite_oid_without_relid()

I like that idea.  Done, attached.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company