Re: Instability in partition_prune test?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Instability in partition_prune test?
Дата
Msg-id 20180413142545.gc4lbnvq6owijozb@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Instability in partition_prune test?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Instability in partition_prune test?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> David Rowley <david.rowley@2ndquadrant.com> writes:
> > The attached basically adds:
> > set max_parallel_workers = 0;
> 
> It seems quite silly to be asking for a parallel plan and then insisting
> it not run in parallel.

The idea is to use the parallel append code, but run it in the leader.

Now that you mention it, this probably decreases coverage for the
choose_next_subplan_for_worker function.

> Maybe the right solution is to strip out the loop_count from what's
> printed.  We've already done that sort of thing in at least one other
> test, using some plpgsql code to "sed" the EXPLAIN output.

Ah, explain_parallel_sort_stats() ... maybe that's an idea, yeah.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Instability in partition_prune test?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] path toward faster partition pruning