Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDDSs-0005YA-K6 for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 16:14:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDDSs-00085g-4C for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 16:14:50 +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 1bDDSr-00084Q-BT for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 16:14:49 +0000 Received: from mimolette.dalibo.net ([212.85.157.144] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDDSn-0005yL-NI for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 16:14:48 +0000 Received: from [192.168.0.6] (aur75-1-78-192-238-147.fbxo.proxad.net [78.192.238.147]) by mail.dalibo.com (Postfix) with ESMTPSA id 2441E2C2C42; Wed, 15 Jun 2016 18:14:44 +0200 (CEST) Subject: Re: Rename max_parallel_degree? To: Robert Haas References: <20160426152217.GA548975@alvherre.pgsql> <11330.1464961183@sss.pgh.pa.us> <57581603.3040309@agliodbs.com> <18837.1465395492@sss.pgh.pa.us> <5856af3e-3c20-89d1-3a9c-af3c2cd3a92b@dalibo.com> <9b599d4c-cb80-4f1f-48ad-169469579efe@dalibo.com> Cc: Tom Lane , Josh Berkus , "David G. Johnston" , Amit Kapila , Peter Geoghegan , Noah Misch , David Rowley , Alvaro Herrera , Magnus Hagander , Bruce Momjian , PostgreSQL-development From: Julien Rouhaud Message-ID: <2b70e5a6-28fe-6601-d294-cd568930265f@dalibo.com> Date: Wed, 15 Jun 2016 18:14:56 +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: 7bit 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 15/06/2016 17:49, Robert Haas wrote: > On Tue, Jun 14, 2016 at 7:10 AM, Julien Rouhaud > wrote: >>> I don't entirely like the new logic in >>> RegisterDynamicBackgroundWorker. >> >>> I wonder if we can't drive this off >>> of a couple of counters, instead of having the process registering the >>> background worker iterate over every slot. [...] >>> > > I think we should go that way. Some day we might try to make the > process of finding a free slot more efficient than it is today; I'd > rather not double down on linear search. > Ok. > Are you going to update this patch? > Sure, I'll post a new patch ASAP. -- 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