pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niels Jespersen <NJN@dst.dk>
To: David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: SV: cpu-intensive immutable function and parallel scan
Date: Wed, 23 Jun 2021 04:57:09 +0000
Message-ID: <90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk> (raw)
In-Reply-To: <CAApHDvrBHyx=1kng+QbcN7B=nbn8ZbxN0gvK35gXaea7sSFpiA@mail.gmail.com>
References: <c800b7a24a95419aaebf4e6ec31d8f57@dst.dk>
	<CAApHDvrBHyx=1kng+QbcN7B=nbn8ZbxN0gvK35gXaea7sSFpiA@mail.gmail.com>

>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 something high enough.
>You can then do:
>alter table t1 set (parallel_workers = <number of workers>);

Thank you. That helped. A lot. 
/Niels


Message-ID: <90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk>
Permalink:  ../90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk/
Also on:    postgresql.org/message-id/90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: NJN@dst.dk, dgrowleyml@gmail.com
  Subject: Re: cpu-intensive immutable function and parallel scan
  In-Reply-To: <90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk>
  References: <c800b7a24a95419aaebf4e6ec31d8f57@dst.dk> <CAApHDvrBHyx=1kng+QbcN7B=nbn8ZbxN0gvK35gXaea7sSFpiA@mail.gmail.com> <90e5e03eeb1c4eb8946e8ac1556c0ab4@dst.dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox