Re: Fix erroneous parallel execution when modifying CTE is present in rewritten query

2021-09-08 Thread Tom Lane
Greg Nancarrow writes: > [ v1-0001-Propagate-CTE-property-flags-when-copying-a-CTE-list.patch ] Pushed with a couple of adjustments: * I rewrote the comment, mostly so as to include an explanation of how the error could be removed, in case anyone ever wants to go to the trouble. * The existing

Fix erroneous parallel execution when modifying CTE is present in rewritten query

2021-08-26 Thread Greg Nancarrow
Hi Hackers, There is a known bug in the query rewriter: if a query that has a modifying CTE is re-written, the hasModifyingCTE flag is not getting set in the re-written query. This bug can result in the query being allowed to execute in parallel-mode, which results in an error. For more details f