Skip site navigation (1) Skip section navigation (2)

pgsql: Refactor typenameTypeId()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor typenameTypeId()
Date: 2010-10-25 18:46:37
Message-ID: E1PAS45-0008C6-QU@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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(-)

pgsql-committers by date

Next:From: User NanardonDate: 2010-10-26 01:40:39
Subject: pgrpm - pgrpm: - don't use temp file to load header from binary string
Previous:From: Tom LaneDate: 2010-10-25 18:25:52
Subject: pgsql: Fix overly-enthusiastic Assert in printing of Param referenceex

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group