pgsql: Guard against parallel-restricted functions in VALUES expression

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Guard against parallel-restricted functions in VALUES expression
Date: 2016-08-19 18:35:51
Message-ID: E1baodz-00019G-OG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/65a603e90328a7a8fb3ab30ed96f24bf8eb4cf84

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-08-19 21:13:52 pgsql: Use LEFT JOINs in some system views in case referenced row doesn
Previous Message Tom Lane 2016-08-19 18:03:32 pgsql: Speed up planner's scanning for parallel-query hazards.