]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Set partitioned_rels appropriately when UNION ALL is used.
authorRobert Haas <rhaas@postgresql.org>
Thu, 14 Sep 2017 14:43:44 +0000 (10:43 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 14 Sep 2017 15:03:23 +0000 (11:03 -0400)
commit448aa36e8b969da257bb58a6fe3db6498d48d4e8
tree64631da8dc4fe9b681d3dfb0aee10adcf69ae07d
parent253c8afc9eb178b7241b4cc571acf7fb6ac6f976
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
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/plan/planner.c