Guard against parallel-restricted functions in VALUES expressions.
authorTom Lane <[email protected]>
Fri, 19 Aug 2016 18:35:32 +0000 (14:35 -0400)
committerTom Lane <[email protected]>
Fri, 19 Aug 2016 18:35:32 +0000 (14:35 -0400)
commitc3813268a7eca8000b8963c079e521eccd960620
treec7b199ad89df04d17ce504cd64d19892b786fde8
parent0440f49523fb88a3ecbc1672d8fcee20197c5c40
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).
src/backend/optimizer/path/allpaths.c