Commit 65a603e9 authored by Tom Lane's avatar Tom Lane

Guard against parallel-restricted functions in VALUES expressions.

Obvious brain fade in set_rel_consider_parallel().  Noticed it while
adjusting the adjacent RTE_FUNCTION case.

In 9.6, also make the code look more like what I just did in HEAD
by removing the unnecessary function_rte_parallel_ok subroutine
(it does nothing that expression_tree_walker wouldn't do).
parent da1c9163
...@@ -599,11 +599,9 @@ set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel, ...@@ -599,11 +599,9 @@ set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel,
break; break;
case RTE_VALUES: case RTE_VALUES:
/* Check for parallel-restricted functions. */
/* if (!is_parallel_safe(root, (Node *) rte->values_lists))
* The data for a VALUES clause is stored in the plan tree itself, return;
* so scanning it in a worker is fine.
*/
break; break;
case RTE_CTE: case RTE_CTE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment