Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0ptY-0084yx-Im for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 21:15:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r0ptX-007seY-6F for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 21:15:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0ptW-007seQ-Sy for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 21:15:26 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0ptT-005QKb-Gk for pgsql-hackers@postgresql.org; Wed, 08 Nov 2023 21:15:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=UnmZrS0JTsX+SKJNRkPAi5zux5bl7XpTpUbR1myeVHg=; b=yJudZ j3O13PraQ/cZYTSjoN6PiaMO+F8Xc3o7y3esXZ4uQ2UKHNDlQNx4UFPADjN7lDoBztQbBWe418tFp hVw2GVn8VWuiUOcCEJZwJd4tnnUUB5tjEUda5K6I//ET5G9ypFqnhTxrgoq6ikM4+NNnKW//CwLkP 6CuyBDEbY7zNymT42phkRC+vosC6uwIksSEoDqMFIbtqafI6ar0ii4MgF/UKHZkgJowbwU9hUsWvw 7SSDsg+KwPbB1lbjx4F0jVYNJH4LNNf5gJGzvXEzTrUxl/VLUS6fW4KXAR8rNbzSSvgzpxup8lYXR SoBifOebZ7yAxJZvXotuI3wfC+PDw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1r0ptR-00Gp9W-0U; Wed, 08 Nov 2023 16:15:21 -0500 Date: Wed, 8 Nov 2023 16:15:21 -0500 From: Bruce Momjian To: Robert Haas Cc: Jeff Davis , "pgsql-hackers@postgresql.org" Subject: Re: max_parallel_workers question Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="DsWRn4mkXCx00J3C" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --DsWRn4mkXCx00J3C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Sep 28, 2019 at 12:10:53AM -0400, Robert Haas wrote: > On Fri, Sep 27, 2019 at 8:07 PM Jeff Davis wrote: > > The current docs for max_parallel_workers start out: > > > > "Sets the maximum number of workers that the system can support for > > parallel operations..." > > > > In my interpretation, "the system" means the entire cluster, but the > > max_parallel_workers setting is PGC_USERSET. That's a bit confusing, > > because two different backends can have different settings for "the > > maximum number ... the system can support". > > Oops. > > I intended it to mean "the entire cluster." Basically, how many > workers out of max_worker_processes are you willing to use for > parallel query, as opposed to other things. I agree that PGC_USERSET > doesn't make any sense. I found two places there "custer" was better than "system", so I applied the attached patch to master. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --DsWRn4mkXCx00J3C Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="master.diff" diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index bd70ff2e4b..fc35a46e5e 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -2572,7 +2572,7 @@ include_dir 'conf.d' - Sets the maximum number of background processes that the system + Sets the maximum number of background processes that the cluster can support. This parameter can only be set at server start. The default is 8. @@ -2680,7 +2680,7 @@ include_dir 'conf.d' - Sets the maximum number of workers that the system can support for + Sets the maximum number of workers that the cluster can support for parallel operations. The default value is 8. When increasing or decreasing this value, consider also adjusting and --DsWRn4mkXCx00J3C--