Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9VnO-0004An-KH for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 16:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9VnN-0003xG-IE for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 16:23:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9VnN-0003x8-AY for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 16:23:21 +0000 Received: from mxh02aws2.mxout.inova.com.br ([34.199.19.2] helo=mxhero02.a.inova.com.br) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9VnD-0007NC-My for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 16:23:19 +0000 Received: from corpmoutpolicyd01.a.inova.com.br (unknown [10.0.1.88]) by mxhero02.a.inova.com.br (Postfix) with ESMTP id D6CBF1F297A; Tue, 9 Feb 2021 16:23:09 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (localhost [127.0.0.1]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id CD146220B68; Tue, 9 Feb 2021 14:23:06 -0200 (BRST) Received: from corpmout01.a.inova.com.br (ip-10-0-1-125.ec2.internal [10.0.1.125]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id C1718C2941; Tue, 9 Feb 2021 14:23:06 -0200 (BRST) Received: from corpmbox02.a.inova.com.br (ip-10-0-4-158.ec2.internal [10.0.4.158]) by corpmout01.a.inova.com.br (Postfix) with ESMTP; Tue, 9 Feb 2021 13:23:06 -0300 (-03) Date: Tue, 9 Feb 2021 13:23:06 -0300 (BRT) From: luis.roberto@siscobra.com.br To: Thorsten =?utf-8?Q?Sch=C3=B6ning?= Cc: pgsql-general Message-ID: <492432164.43033181.1612887786512.JavaMail.zimbra@siscobra.com.br> In-Reply-To: <767344739.20210209165202@am-soft.de> References: <767344739.20210209165202@am-soft.de> Subject: Re: How does Postgres decide if to use additional workers? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_92a24ee6-2d38-4d19-b450-b37d024d8572" X-Originating-IP: [10.0.4.158] X-Mailer: Zimbra 8.8.15_GA_3980 (ZimbraWebClient - GC88 (Win)/8.8.15_GA_3980) Thread-Topic: How does Postgres decide if to use additional workers? Thread-Index: B0WK6+ql0hf5ZTsZK6W+F0oijJR2JA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_92a24ee6-2d38-4d19-b450-b37d024d8572 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable De: "Thorsten Sch=C3=B6ning" =20 Para: "pgsql-general" =20 Enviadas: Ter=C3=A7a-feira, 9 de fevereiro de 2021 12:52:02=20 Assunto: How does Postgres decide if to use additional workers?=20 So, based on which facts does Postgres decide if to use aadditional=20 workers or not? Can I see those decisions explained somewhere? I don't=20 see anything in the query plan. Thanks!=20 Mit freundlichen Gr=C3=BC=C3=9Fen=20 Thorsten Sch=C3=B6ning=20 Hi!=20 I think you should look into min_parallel_table_scan_size and min_parallel_= index_scan_size GUCs.=20 --=_92a24ee6-2d38-4d19-b450-b37d024d8572 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
De: "Thorsten Sch=C3=B6ning" <tschoening@am-soft.de>
Para: "pg= sql-general" <pgsql-general@lists.postgresql.org>
Enviadas: Ter=C3=A7a-feira, 9 de fevereiro de 2021 12:52:02
Assunto: How d= oes Postgres decide if to use additional workers?
So, based on which facts does Postgres decide if to use aadd= itional
workers or not? Can I see those decisions explained somewhere? I= don't
see anything in the query plan. Thanks!

Mit freundlichen G= r=C3=BC=C3=9Fen

Thorsten Sch=C3=B6ning



Hi!

I think you should look into min_parallel_table_scan_size an= d min_parallel_index_scan_size  GUCs.


--=_92a24ee6-2d38-4d19-b450-b37d024d8572--