Guard against parallel-restricted functions in VALUES expressions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Aug 2016 18:35:32 +0000 (14:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Aug 2016 18:35:32 +0000 (14:35 -0400)
commit65a603e90328a7a8fb3ab30ed96f24bf8eb4cf84
tree1904d298fe576797ebaaa7a0968adf14e49170b5
parentda1c91631e3577ea5818f855ebb5bd206d559006
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