aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/plan/planner.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-08-15 10:49:06 -0400
committerRobert Haas <rhaas@postgresql.org>2017-08-15 10:49:06 -0400
commit480f1f4329f1bf8bfbbcda8ed233851e1b110ad4 (patch)
tree963b28125c8808fad10a0b8aa5ba2a82692ccb03 /src/backend/optimizer/plan/planner.c
parentd57929afc7063431f80a0ac4c510fc39aacd22e6 (diff)
downloadpostgresql-480f1f4329f1bf8bfbbcda8ed233851e1b110ad4.tar.gz
postgresql-480f1f4329f1bf8bfbbcda8ed233851e1b110ad4.zip
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
Diffstat (limited to 'src/backend/optimizer/plan/planner.c')
-rw-r--r--src/backend/optimizer/plan/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c
index 2988c1181b9..407df9ae79d 100644
--- a/src/backend/optimizer/plan/planner.c
+++ b/src/backend/optimizer/plan/planner.c
@@ -1142,7 +1142,7 @@ inheritance_planner(PlannerInfo *root)
subroot->parse = (Query *)
adjust_appendrel_attrs(root,
(Node *) parse,
- appinfo);
+ 1, &appinfo);
/*
* If there are securityQuals attached to the parent, move them to the