pgsql: Fix optimization for skipping searches for parallel-query hazard

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix optimization for skipping searches for parallel-query hazard
Date: 2016-11-21 18:19:34
Message-ID: E1c8tBm-0000YL-3Z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)fsf(at)credativ(dot)de>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4324ade9a6880113b08070305482ace2e8a2617c

Modified Files
--------------
src/backend/optimizer/util/clauses.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-11-21 23:22:22 pgsql: Fix PGLC_localeconv() to handle errors better.
Previous Message Robert Haas 2016-11-21 18:05:40 pgsql: autovacuum: Drop orphan temp tables more quickly but with more c