Re: Number of parallel workers chosen by the optimizer for parallel append

2020-12-04 Thread Laurenz Albe
On Wed, 2020-11-25 at 17:36 +0100, Laurenz Albe wrote: > I have a partitioned table, each partition has "parallel_workers = 10" set. > > SET max_parallel_workers_per_gather = 8; > > SET enable_partitionwise_aggregate = on; > > EXPLAIN (COSTS OFF) > SELECT applicant_name, count(ipc_4) >

Re: Number of parallel workers chosen by the optimizer for parallel append

2020-11-25 Thread Michael Lewis
What have you tried? Changing the relevant cost parameters I assume? Nothing else going on that may be taking up those workers, right? https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-PARALLEL-SETUP-COST

Number of parallel workers chosen by the optimizer for parallel append

2020-11-25 Thread Laurenz Albe
I have a partitioned table, each partition has "parallel_workers = 10" set. SET max_parallel_workers_per_gather = 8; SET enable_partitionwise_aggregate = on; EXPLAIN (COSTS OFF) SELECT applicant_name, count(ipc_4) FROM laurenz.z_flat GROUP BY applicant_name; QU