Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTvPY-0000dY-81 for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:56:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTvPX-0006wy-RL for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:56:43 +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 1cTvPK-0006hg-Cl for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:56:30 +0000 Received: from mahout.postgresql.org ([2001:4800:1501:1::227]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTvPH-0005Vi-An for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:56:29 +0000 Received: from gemulon.postgresql.org ([2001:4800:1501:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cTvPG-0001tp-VX for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:56:26 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.84_2) (envelope-from ) id 1cTvPG-0004iY-PT for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:56:26 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@postgresql.org From: Robert Haas Subject: pgsql: Factor out logic for computing number of parallel workers. Message-Id: Date: Wed, 18 Jan 2017 18:56:26 +0000 X-Pg-Spam-Score: -10.1 (----------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org RmFjdG9yIG91dCBsb2dpYyBmb3IgY29tcHV0aW5nIG51bWJlciBvZiBwYXJh bGxlbCB3b3JrZXJzLgoKRm9ydGhjb21pbmcgcGF0Y2hlcyB0byBhbGxvdyBv dGhlciB0eXBlcyBvZiBwYXJhbGxlbCBzY2FucyB3aWxsCm5lZWQgdGhpcyBs b2dpYywgb3Igc29tZXRoaW5nIGxpa2UgaXQuCgpEaWxpcCBLdW1hcgoKQnJh bmNoCi0tLS0tLQptYXN0ZXIKCkRldGFpbHMKLS0tLS0tLQpodHRwOi8vZ2l0 LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvNzE2YzdkNGIyNDJmMGE2 NGFkOGFjNGRjNDhjNmZlZDY1NTdiYTEyYwoKTW9kaWZpZWQgRmlsZXMKLS0t LS0tLS0tLS0tLS0Kc3JjL2JhY2tlbmQvb3B0aW1pemVyL3BhdGgvYWxscGF0 aHMuYyB8IDEwMyArKysrKysrKysrKysrKysrKysrKy0tLS0tLS0tLS0tLS0t CjEgZmlsZSBjaGFuZ2VkLCA2MCBpbnNlcnRpb25zKCspLCA0MyBkZWxldGlv bnMoLSkKCgotLSAKU2VudCB2aWEgcGdzcWwtY29tbWl0dGVycyBtYWlsaW5n IGxpc3QgKHBnc3FsLWNvbW1pdHRlcnNAcG9zdGdyZXNxbC5vcmcpClRvIG1h a2UgY2hhbmdlcyB0byB5b3VyIHN1YnNjcmlwdGlvbjoKaHR0cDovL3d3dy5w b3N0Z3Jlc3FsLm9yZy9tYWlscHJlZi9wZ3NxbC1jb21taXR0ZXJzCg==