Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIG33-0002Na-8Q for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jun 2016 14:01:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIG32-0006Lk-Pq for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jun 2016 14:01:00 +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 1bIG31-0006Kz-BT for pgsql-hackers@postgresql.org; Wed, 29 Jun 2016 14:00:59 +0000 Received: from mimolette.dalibo.net ([212.85.157.144] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIG2y-0007KB-DU for pgsql-hackers@postgresql.org; Wed, 29 Jun 2016 14:00:58 +0000 Received: from [172.16.221.140] (2-228-60-90.ip190.fastwebnet.it [2.228.60.90]) by mail.dalibo.com (Postfix) with ESMTPSA id 238372C0054; Wed, 29 Jun 2016 16:00:52 +0200 (CEST) Subject: Re: Rename max_parallel_degree? To: Amit Kapila References: <20160426152217.GA548975@alvherre.pgsql> <2b70e5a6-28fe-6601-d294-cd568930265f@dalibo.com> <79f47dd2-819a-940a-5912-5ff643e87b54@dalibo.com> <98adbca7-3bec-7ee4-92b0-893a0ace5cca@dalibo.com> <9f84548d-8b59-b5c8-510d-991f8ee3ab20@dalibo.com> <20312f33-c14e-0d3f-a79f-95212f64a38c@dalibo.com> Cc: Robert Haas , Tom Lane , Josh Berkus , "David G. Johnston" , Peter Geoghegan , Noah Misch , David Rowley , Alvaro Herrera , Magnus Hagander , Bruce Momjian , PostgreSQL-development From: Julien Rouhaud Message-ID: Date: Wed, 29 Jun 2016 16:00:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) 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 On 29/06/2016 08:51, Amit Kapila wrote: > On Wed, Jun 29, 2016 at 11:54 AM, Julien Rouhaud > wrote: >> Or should we allow setting it to -1 for instance to disable the limit? >> > > By disabling the limit, do you mean to say that only > max_parallel_workers_per_gather will determine the workers required or > something else? I meant what the current behavior (before this patch) is, which is probably what some user without custom dynamic bgworker may like to have. Otherwise, you'd have to change two parameters to effectively increase parallelism, and I think it can also cause some confusion. > If earlier, then I am not sure if it is good idea, > because it can cause some confusion to the user about usage of both > the parameters together. > I also agree. I don't see an ideal solution, so just keeping this patch behavior is fine for me. -- Julien Rouhaud http://dalibo.com - http://dalibo.org -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers