Set partitioned_rels appropriately when UNION ALL is used.
Robert Haas <rhaas@postgresql.org>
Set partitioned_rels appropriately when UNION ALL is used. In most cases, this omission won't matter, because the appropriate locks will have been acquired during parse/plan or by AcquireExecutorLocks. But it's a bug all the same. Report by Ashutosh Bapat. Patch by me, reviewed by Amit Langote. Discussion: http://postgr.es/m/CAFjFpRdHb_ZnoDTuBXqrudWXh3H1ibLkr6nHsCFT96fSK4DXtA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/allpaths.c | modified | +38 −4 |
| src/backend/optimizer/plan/planner.c | modified | +2 −4 |
Discussion
- Re: Partition-wise join for join between (declaratively) partitioned tables 134 messages · 2017-08-10 → 2018-06-06