]> granicus.if.org Git - postgresql/commit
Fix optimization for skipping searches for parallel-query hazards.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Nov 2016 18:19:14 +0000 (13:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Nov 2016 18:19:23 +0000 (13:19 -0500)
commit4324ade9a6880113b08070305482ace2e8a2617c
treecd8ad8bd6fb338c60b2b71b422d759d00a6eeda9
parenta734fd5d1c309cc553b7c8c79fba96218af090f7
Fix optimization for skipping searches for parallel-query hazards.

Fix thinko in commit da1c91631: even if the original query was free of
parallel hazards, we might introduce such a hazard by adding PARAM_EXEC
Param nodes.  Adjust is_parallel_safe() so that it will scan the given
expression whenever any such nodes have been created.  Per report from
Andreas Seltenreich.

Discussion: <878tse6yvf.fsf@credativ.de>
src/backend/optimizer/util/clauses.c