Обсуждение: pgsql: Refactor typenameTypeId()

Поиск
Список
Период
Сортировка

pgsql: Refactor typenameTypeId()

От
Peter Eisentraut
Дата:
Refactor typenameTypeId()

Split the old typenameTypeId() into two functions: A new typenameTypeId() that
returns only a type OID, and typenameTypeIdAndMod() that returns type OID and
typmod.  This isolates call sites better that actually care about the typmod.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=35670340f57d78d6ab023b1fb42fd81339f85d4c

Modified Files
--------------
src/backend/access/common/tupdesc.c  |    2 +-
src/backend/catalog/objectaddress.c  |    6 +++---
src/backend/commands/aggregatecmds.c |    6 +++---
src/backend/commands/comment.c       |    4 ++--
src/backend/commands/functioncmds.c  |    8 ++++----
src/backend/commands/opclasscmds.c   |    8 ++++----
src/backend/commands/operatorcmds.c  |    4 ++--
src/backend/commands/prepare.c       |    2 +-
src/backend/commands/tablecmds.c     |   12 ++++++------
src/backend/commands/typecmds.c      |   16 ++++++++--------
src/backend/parser/parse_expr.c      |   10 +++++-----
src/backend/parser/parse_oper.c      |    4 ++--
src/backend/parser/parse_relation.c  |    2 +-
src/backend/parser/parse_type.c      |   29 +++++++++++++++++++++++------
src/backend/utils/misc/guc.c         |    2 +-
src/include/parser/parse_type.h      |    7 ++++---
16 files changed, 70 insertions(+), 52 deletions(-)