Thread: [COMMITTERS] pgsql: Teach adjust_appendrel_attrs(_multilevel) to do multipletransla
[COMMITTERS] pgsql: Teach adjust_appendrel_attrs(_multilevel) to do multipletransla
From
Robert Haas
Date:
Teach adjust_appendrel_attrs(_multilevel) to do multiple translations. Currently, child relations are always base relations, so when we translate parent relids to child relids, we only need to translate a singler relid. However, the proposed partition-wise join feature will create child joins, which will mean we need to translate a set of parent relids to the corresponding child relids. This is preliminary refactoring to make that possible. Ashutosh Bapat. Review and testing of the larger patch set of which this is a part by Amit Langote, Rajkumar Raghuwanshi, Rafia Sabih, Thomas Munro, Dilip Kumar, and me. Some adjustments, mostly cosmetic, by me. Discussion: http://postgr.es/m/CA+TgmobQK80vtXjAsPZWWXd7c8u13G86gmuLupN+uUJjA+i4nA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/480f1f4329f1bf8bfbbcda8ed233851e1b110ad4 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 6 +- src/backend/optimizer/path/equivclass.c | 5 +- src/backend/optimizer/plan/planner.c | 2 +- src/backend/optimizer/prep/prepunion.c | 251 ++++++++++++++++++++++++-------- src/include/optimizer/prep.h | 8 +- 5 files changed, 200 insertions(+), 72 deletions(-)