]> granicus.if.org Git - postgresql/commit
Refactor typenameTypeId()
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 25 Oct 2010 18:40:46 +0000 (21:40 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 25 Oct 2010 18:44:49 +0000 (21:44 +0300)
commit35670340f57d78d6ab023b1fb42fd81339f85d4c
tree353a103641ea21787ace05801ebc9f2a42e61137
parentc6873eac4c33720140240cdbd1a663fecc922c57
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.
16 files changed:
src/backend/access/common/tupdesc.c
src/backend/catalog/objectaddress.c
src/backend/commands/aggregatecmds.c
src/backend/commands/comment.c
src/backend/commands/functioncmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/operatorcmds.c
src/backend/commands/prepare.c
src/backend/commands/tablecmds.c
src/backend/commands/typecmds.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_type.c
src/backend/utils/misc/guc.c
src/include/parser/parse_type.h