Track in the plan the types associated with PARAM_EXEC parameters.
authorRobert Haas <rhaas@postgresql.org>
Mon, 13 Nov 2017 20:24:12 +0000 (15:24 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 13 Nov 2017 20:24:12 +0000 (15:24 -0500)
commite64861c79bda659ee384bc253f651401f953dadc
treee921dbaebc20a4386bbe194799288b4069adf406
parentce4c86a656d2c0174d1ff1f64f38da07574562c0
Track in the plan the types associated with PARAM_EXEC parameters.

Up until now, we only tracked the number of parameters, which was
sufficient to allocate an array of Datums of the appropriate size,
but not sufficient to, for example, know how to serialize a Datum
stored in one of those slots.  An upcoming patch wants to do that,
so add this tracking to make it possible.

Patch by me, reviewed by Tom Lane and Amit Kapila.

Discussion: http://postgr.es/m/CA+TgmoYqpxDKn8koHdW8BEKk8FMUL0=e8m2Qe=M+r0UBjr3tuQ@mail.gmail.com
src/backend/executor/execMain.c
src/backend/executor/execParallel.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/util/clauses.c
src/include/nodes/plannodes.h
src/include/nodes/relation.h