Re: get_whatever_oid, part 2 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: get_whatever_oid, part 2
Date
Msg-id AANLkTiknOlmSCmo5KOAQxIc-KYGWobjgl7llCka8RVtL@mail.gmail.com
Whole thread Raw
In response to Re: get_whatever_oid, part 2  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: get_whatever_oid, part 2
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Bug? Concurrent COMMENT ON and DROP object
Next
From: Robert Haas
Date:
Subject: Re: ExecutorCheckPerms() hook