OSDN Git Service

Infrastructure for deducing Param types from context, in the same way
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Apr 2003 22:13:11 +0000 (22:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Apr 2003 22:13:11 +0000 (22:13 +0000)
commitaa282d44464df0fbfa0672dc353d36734ec1092e
treedbf42be31346c6716bc33e73e801cda670fc60e4
parent19141f558411e96446294baf240eaeccf6d68b64
Infrastructure for deducing Param types from context, in the same way
that the types of untyped string-literal constants are deduced (ie,
when coerce_type is applied to 'em, that's what the type must be).
Remove the ancient hack of storing the input Param-types array as a
global variable, and put the info into ParseState instead.  This touches
a lot of files because of adjustment of routine parameter lists, but
it's really not a large patch.  Note: PREPARE statement still insists on
exact specification of parameter types, but that could easily be relaxed
now, if we wanted to do so.
29 files changed:
src/backend/catalog/heap.c
src/backend/commands/schemacmds.c
src/backend/commands/tablecmds.c
src/backend/commands/typecmds.c
src/backend/executor/spi.c
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/clauses.c
src/backend/parser/analyze.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_coerce.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_node.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_target.c
src/backend/parser/parse_type.c
src/backend/parser/parser.c
src/backend/rewrite/rewriteHandler.c
src/backend/tcop/postgres.c
src/include/parser/analyze.h
src/include/parser/gramparse.h
src/include/parser/parse_coerce.h
src/include/parser/parse_func.h
src/include/parser/parse_node.h
src/include/parser/parse_oper.h
src/include/parser/parser.h
src/include/tcop/tcopprot.h