pgsql: Add a reverse-translation column number array to struct AppendRe

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add a reverse-translation column number array to struct AppendRe
Date: 2019-12-02 23:05:35
Message-ID: E1ibul5-0001Cc-O4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-12-03 00:08:19 pgsql: Fix EXPLAIN's column alias output for mismatched child tables.
Previous Message Tom Lane 2019-12-02 21:31:10 pgsql: Make postgres_fdw's "Relations" output agree with the rest of EX