Set partitioned_rels appropriately when UNION ALL is used.

Robert Haas <rhaas@postgresql.org>

Commit: 1555566d9ee1a996a28cc4601840a67831112695
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-09-14T15:00:39Z
Releases: 11.0
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

Discussion