]> granicus.if.org Git - postgresql/commit
Teach adjust_appendrel_attrs(_multilevel) to do multiple translations.
authorRobert Haas <rhaas@postgresql.org>
Tue, 15 Aug 2017 14:49:06 +0000 (10:49 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 15 Aug 2017 14:49:06 +0000 (10:49 -0400)
commit480f1f4329f1bf8bfbbcda8ed233851e1b110ad4
tree963b28125c8808fad10a0b8aa5ba2a82692ccb03
parentd57929afc7063431f80a0ac4c510fc39aacd22e6
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
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/equivclass.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/prep/prepunion.c
src/include/optimizer/prep.h