Tom Lane wrote: > David Rowley <david.row...@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