Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b88MA-0006bt-Nt for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2016 15:46:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b88M9-0002TP-QK for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2016 15:46:53 +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 1b88Kn-0007v4-Jg for pgsql-hackers@postgresql.org; Wed, 01 Jun 2016 15:45:29 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b88Kk-00066r-Bx for pgsql-hackers@postgresql.org; Wed, 01 Jun 2016 15:45:28 +0000 Received: by mail-wm0-x22a.google.com with SMTP id n184so38680370wmn.1 for ; Wed, 01 Jun 2016 08:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=GqokzZrMyu7nBAlpeFr7cZ06nB/kM+TX/9EFgexnWZk=; b=vnq2L7YE79mBrsp8+tb38XQgFUckLVPWNgIrN1B7EdWLbjn5eAFKEpqdFnFpk7CEWq e+OkcDNFPY0YHIsl+rVxt0MPft5jS2vELY2qSHXrlm11WDPaDTKhafM9HC3UETUiiTU5 mGEs19sSpaeujBgxHimgTJ8vqN4GcAqmW/a+TEoFLq9j+DGvTW7zOcqvXKs093lcSX3v HuzSpOUcVDUe1zy9U8rUZMxE+T+BQ/tK0+FIzKR7z7Q0lVsFEQkBX3hWaT33q7hSKRnz Au64vuC6fWvthkj/npyCkExkQ8e/8q3GgTVDHNLu0meHkX/7bau3SF3yEV3eD5ZGCCXg kqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=GqokzZrMyu7nBAlpeFr7cZ06nB/kM+TX/9EFgexnWZk=; b=iou1pVO3nim342eYzGJaPhnqLPq+3/mrOqZ8QeOj8I7u9sLqUJ1+sJIXKJR4Bzo5VQ X5MB3LSJVoEr/xhc1kjhlwlpneRKJQVS2JYRCRtjq2Yprh7qJseLN8CbKK8I2DGYk3Ft fF4XXK/39mADji10PAwFSglSppYgcqwWsp6p8QnKJ+38dDZN7RdfGCilYOxqqeFgtTVv 3X5kgasxlFyrNSMLqNIgmkZPQikV67HoPVk2rgGUTfVjmGZcm6Bnjg9oAY1C73AaVkE1 VMLGKlSLYmZ1pSsk4sYB+4Dt7axzphfmTjXV/4zSTGQ91LAjz38M1vnUQggEeGjqB6tx k0XQ== X-Gm-Message-State: ALyK8tJeRev+oyzd3czfU5Ntx01lRnhCuJ7EU5Ah714C2S7sPKTZrm3eUIAlR+x5nwdC/lMAWQ49cHXuelvlRLTs5pWMMQSIBIoBPC7V5kZHlp7RMMngmc6h0ymUmz6LD/hX+AyUWTjRGEo61MibKiKOAgrwhvlXSFpufo3PsOuYX9AW9B2k7dyUs7J4mY8S3Q== X-Received: by 10.28.194.4 with SMTP id s4mr22052232wmf.68.1464795922279; Wed, 01 Jun 2016 08:45:22 -0700 (PDT) Received: from [192.168.0.103] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id lr9sm46107763wjb.39.2016.06.01.08.45.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 08:45:20 -0700 (PDT) Subject: Re: Rename max_parallel_degree? To: Jim Nasby , Robert Haas , Tom Lane References: <20160531202742.GA896974@alvherre.pgsql> <5641.1464731894@sss.pgh.pa.us> Cc: Alvaro Herrera , Josh berkus , Peter Eisentraut , Peter Geoghegan , Noah Misch , David Rowley , Amit Kapila , Magnus Hagander , Bruce Momjian , PostgreSQL-development From: Petr Jelinek Message-ID: <574F030F.7030108@2ndquadrant.com> Date: Wed, 1 Jun 2016 17:45:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 01/06/16 17:27, Jim Nasby wrote: > On 5/31/16 8:48 PM, Robert Haas wrote: >> On Tue, May 31, 2016 at 5:58 PM, Tom Lane wrote: >>> Alvaro Herrera writes: >>>> Robert Haas wrote: >>>>> I just want to point out that if we change #1, we're breaking >>>>> postgresql.conf compatibility for, IMHO, not a whole lot of benefit. >>>>> I'd just leave it alone. >>> >>>> We can add the old name as a synonym in guc.c to maintain >>>> compatibility. >>> >>> I doubt this is much of an issue at this point; max_worker_processes has >>> only been there a release or so, and surely there are very few people >>> explicitly setting it, given its limited use-case up to now. It will be >>> really hard to change it after 9.6, but I think we could still get away >>> with that today. >> >> max_worker_processes was added in 9.4, so it's been there for two >> releases, but it probably is true that few people have set it. >> Nevertheless, I don't think there's much evidence that it is a bad >> enough name that we really must change it. > > ISTM that all the confusion about parallel query would go away if the > setting was max_parallel_assistants instead of _workers. It's exactly > how parallel query works: there are helpers that *assist* the backend in > executing the query. > > The big downside to "assistants" is it breaks all lexical connection to > max_worker_processes. So what if we change that to > max_assistant_processes? I think "assistant" and "worker" are close > enough in meaning for "stand alone" uses of BG workers so as not to be > confusing, and I don't see any options for parallelism that are any > clearer. That GUC also controls worker processes that are started by extensions, not just ones that parallel query starts. This is btw one thing I don't like at all about how the current limits work, the parallel query will fight for workers with extensions because they share the same limit. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers