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 1o3fQ8-0002Xv-EP for pgsql-admin@arkaria.postgresql.org; Tue, 21 Jun 2022 15:04:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o3fQ5-0007Lq-Cj for pgsql-admin@arkaria.postgresql.org; Tue, 21 Jun 2022 15:03:57 +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 1o3fQ5-0007Lg-2X for pgsql-admin@lists.postgresql.org; Tue, 21 Jun 2022 15:03:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o3fPz-0005re-EF for pgsql-admin@lists.postgresql.org; Tue, 21 Jun 2022 15:03:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25LF3mSu2971653; Tue, 21 Jun 2022 11:03:48 -0400 From: Tom Lane To: "James Pang (chaolpan)" cc: "pgsql-admin@lists.postgresql.org" Subject: Re: multiple sessions to create index in parallel support In-reply-to: References: <2944693.1655821801@sss.pgh.pa.us> Comments: In-reply-to "James Pang (chaolpan)" message dated "Tue, 21 Jun 2022 14:44:23 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2971651.1655823828.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Jun 2022 11:03:48 -0400 Message-ID: <2971652.1655823828@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "James Pang (chaolpan)" writes: > Max_parallel_workers and max_parallel_maintenance_workers both equal to = 32, one session create one index in a large table show parallel 8 worke= rs, the other session creating one index in another separate table alway= s in serial. Even increase max_parallel_worers and max_parallel_maintenanc= e_workers to 64, still show one is parallel 8 workers, the other is done i= n serial. Hmm, what about max_worker_processes ? That's an independent limit. regards, tom lane