Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDDQT-0002Tx-Dw for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2016 16:44:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cDDQR-0002z1-Tr for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Dec 2016 16:44:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDDP2-0001JZ-JO for pgsql-hackers@postgresql.org; Sat, 03 Dec 2016 16:43:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDDP0-0007zA-4G; Sat, 03 Dec 2016 16:43:07 +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 uB3Gh2oq020842; Sat, 3 Dec 2016 11:43:02 -0500 From: Tom Lane To: Robert Haas cc: Jim Nasby , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add max_parallel_workers GUC. In-reply-to: References: <20338.1480712866@sss.pgh.pa.us> <989.1480718711@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 02 Dec 2016 21:15:01 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20840.1480783382.1@sss.pgh.pa.us> Date: Sat, 03 Dec 2016 11:43:02 -0500 Message-ID: <20841.1480783382@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Robert Haas writes: > On Dec 2, 2016, at 5:45 PM, Tom Lane wrote: >> Might work. We've had very bad luck with GUC variables with >> interdependent defaults, but maybe the user-visible knob could be a >> percentage of max_connections or something like that. > Seems like overkill. Let's just reduce the values a bit. Agreed. How about max_worker_processes = 8 as before, with max_parallel_workers of maybe 6? Or just set them both to 8. I'm not sure that the out-of-the-box configuration needs to leave backend slots locked down for non-parallel worker processes. Any such process would require manual configuration anyway no? 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