Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7o7g-0007uC-8n for pgsql-hackers@arkaria.postgresql.org; Tue, 31 May 2016 18:10:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b7o7f-00081H-KG for pgsql-hackers@arkaria.postgresql.org; Tue, 31 May 2016 18:10:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b7o6I-00051v-Od for pgsql-hackers@postgresql.org; Tue, 31 May 2016 18:09:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b7o6F-0002tj-L1 for pgsql-hackers@postgresql.org; Tue, 31 May 2016 18:09:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4VI8vDh021508; Tue, 31 May 2016 14:08:57 -0400 From: Tom Lane To: Peter Geoghegan cc: Josh berkus , Robert Haas , Noah Misch , David Rowley , Amit Kapila , Alvaro Herrera , Magnus Hagander , Bruce Momjian , PostgreSQL-development Subject: Re: Rename max_parallel_degree? In-reply-to: References: <20160426152217.GA548975@alvherre.pgsql> <20160529053300.GD496776@tornado.leadboat.com> <574DBEA4.9000205@agliodbs.com> <8716.1464714201@sss.pgh.pa.us> <574DC585.7010507@agliodbs.com> <574DC881.5010006@agliodbs.com> <574DCDFC.6060! 506@agliodbs.com> Comments: In-reply-to Peter Geoghegan message dated "Tue, 31 May 2016 10:51:28 -0700" Date: Tue, 31 May 2016 14:08:57 -0400 Message-ID: <21507.1464718137@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Geoghegan writes: > Even when the leader is consuming input from workers, that's still perhaps > pegging one CPU core. So, it doesn't really invalidate what I said about > the number of cores being the primary consideration. Agreed, but if we think that people need to be thinking in those terms, maybe the parameter should be "max_parallel_cores". The alternate docs patch I just posted tries to deal with this by describing max_parallel_workers as being the max number of worker processes used to "assist" a parallel query. That was terminology already being used in one place, but not consistently. If we use it consistently, I think it would be sufficient to remind people that they need to figure on one more core for the leader. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers