SV: cpu-intensive immutable function and parallel scan - Mailing list pgsql-general

From Niels Jespersen
Subject SV: cpu-intensive immutable function and parallel scan
Date
Msg-id 90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk
Whole thread Raw
In response to Re: cpu-intensive immutable function and parallel scan  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-general
>Fra: David Rowley <dgrowleyml@gmail.com> Sendt: 22. juni 2021 09:10
>Emne: Re: cpu-intensive immutable function and parallel scan
>On Tue, 22 Jun 2021 at 19:06, Niels Jespersen <NJN@dst.dk> wrote:

>> I think I could achieve some speedup by parallelizing further, distributing the cpu-work among additional workers.
But,how do I achive that best?
 
>You'll want to ensure max_parallel_workers_per_gather is set high enough and you have max_parallel_workers set to
somethinghigh enough.
 
>You can then do:
>alter table t1 set (parallel_workers = <number of workers>);

Thank you. That helped. A lot. 
/Niels

pgsql-general by date:

Previous
From: "Rhys A.D. Stewart"
Date:
Subject: Exclusion constraint with custom operator not working as expected
Next
From: Darafei "Komяpa" Praliaskouski
Date:
Subject: Re: [postgis-users] Exclusion constraint with custom operator not working as expected