pgsql: Guard against parallel-restricted functions in VALUES expression - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Guard against parallel-restricted functions in VALUES expression
Date
Msg-id E1baodz-00019H-OK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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).

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c3813268a7eca8000b8963c079e521eccd960620

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 31 ++++---------------------------
1 file changed, 4 insertions(+), 27 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Speed up planner's scanning for parallel-query hazards.
Next
From: Tom Lane
Date:
Subject: pgsql: Guard against parallel-restricted functions in VALUES expression