pgsql: Fix test for subplans in force-parallel mode.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix test for subplans in force-parallel mode.
Дата
Msg-id E1c8rA3-0006lR-CU@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix test for subplans in force-parallel mode.

We mustn't force parallel mode if the query has any subplans, since
ExecSerializePlan doesn't transmit them to workers.  Testing
top_plan->initPlan is inadequate because (1) there might be initPlans
attached to lower plan nodes, and (2) non-initPlan subplans don't
work either.  There's certainly room for improvement in those
restrictions, but for the moment that's what we've got.

Amit Kapila, per report from Andreas Seltenreich

Discussion: <8737im6pmh.fsf@credativ.de>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/01f08cbbc975c56cbffc8e051ee4470ab7516358

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix test for subplans in force-parallel mode.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: autovacuum: Drop orphan temp tables more quickly but with more c