From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a reverse-translation column number array to struct AppendRe
Date: Mon, 02 Dec 2019 23:05:35 +0000
Message-ID: <E1ibul5-0001Cc-O4@gemulon.postgresql.org> (raw)
Add a reverse-translation column number array to struct AppendRelInfo.
This provides for cheaper mapping of child columns back to parent
columns. The one existing use-case in examine_simple_variable()
would hardly justify this by itself; but an upcoming bug fix will
make use of this array in a mainstream code path, and it seems
likely that we'll find other uses for it as we continue to build
out the partitioning infrastructure.
Discussion: https://postgr.es/m/12424.1575168015@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ce76c0ba53e4bd0daf3db7a703671b27797b7244
Modified Files
--------------
src/backend/nodes/copyfuncs.c | 2 ++
src/backend/nodes/equalfuncs.c | 2 ++
src/backend/nodes/nodeFuncs.c | 1 +
src/backend/nodes/outfuncs.c | 2 ++
src/backend/optimizer/prep/prepjointree.c | 18 +++++++++++++-----
src/backend/optimizer/util/appendinfo.c | 26 ++++++++++++++++++++------
src/backend/utils/adt/selfuncs.c | 24 ++++++------------------
src/include/nodes/pathnodes.h | 27 ++++++++++++++++-----------
8 files changed, 62 insertions(+), 40 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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add a reverse-translation column number array to struct AppendRe
In-Reply-To: <E1ibul5-0001Cc-O4@gemulon.postgresql.org>
References: <E1ibul5-0001Cc-O4@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