get_whatever_oid, part 2

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2010-06-14T17:25:59Z
Lists: pgsql-hackers

Attachments

Per previous discussion:

http://archives.postgresql.org/pgsql-hackers/2010-05/msg01195.php
http://archives.postgresql.org/pgsql-hackers/2010-05/msg01577.php

Changes in this patch:

- Rename TSParserGetPrsid to get_tsparser_oid, TSDictionaryGetDictid
to get_tsdictionary_oid, TSTemplateGetTmplid to get_tstemplate_oid,
TSConfigGetCfgid to get_tsconfiguration_oid, FindConversionByName to
get_conversion_oid, and GetConstraintName to get_constraint_oid.
- Add new functions get_opclass_oid, get_opfamily_oid, get_rule_oid,
get_rule_oid_without_relid, get_trigger_oid, and get_cast_oid.
- Refactor existing code to use these functions wherever possible.

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