Guard against parallel-restricted functions in VALUES expressions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c3813268a7eca8000b8963c079e521eccd960620
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-08-19T18:35:32Z
Releases: 9.6.0
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).

Files

PathChange+/−
src/backend/optimizer/path/allpaths.c modified +4 −27