From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Track in the plan the types associated with PARAM_EXEC parameter
Date: Mon, 13 Nov 2017 20:27:31 +0000
Message-ID: <E1eELKN-0002PU-Ar@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e64861c79bda659ee384bc253f651401f953dadc
Modified Files
--------------
src/backend/executor/execMain.c | 20 +++++++++++++------
src/backend/executor/execParallel.c | 2 +-
src/backend/nodes/copyfuncs.c | 2 +-
src/backend/nodes/outfuncs.c | 4 ++--
src/backend/nodes/readfuncs.c | 2 +-
src/backend/optimizer/plan/planner.c | 6 +++---
src/backend/optimizer/plan/subselect.c | 35 +++++++++++++++++++++++++---------
src/backend/optimizer/util/clauses.c | 2 +-
src/include/nodes/plannodes.h | 2 +-
src/include/nodes/relation.h | 6 +++---
10 files changed, 53 insertions(+), 28 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: Track in the plan the types associated with PARAM_EXEC parameter
In-Reply-To: <E1eELKN-0002PU-Ar@gemulon.postgresql.org>
References: <E1eELKN-0002PU-Ar@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox