Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCr2J-00017R-Vx for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2016 16:17:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCr2J-0005Hd-Im for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2016 16:17:55 +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 1bCr0y-0003nP-7U for pgsql-hackers@postgresql.org; Tue, 14 Jun 2016 16:16:32 +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 1bCr0v-0002bR-Qy for pgsql-hackers@postgresql.org; Tue, 14 Jun 2016 16:16:31 +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 u5EGGGlm009414; Tue, 14 Jun 2016 12:16:16 -0400 From: Tom Lane To: Robert Haas cc: Julien Rouhaud , Josh Berkus , "David G. Johnston" , Amit Kapila , Peter Geoghegan , Noah Misch , David Rowley , Alvaro Herrera , Magnus Hagander , Bruce Momjian , PostgreSQL-development Subject: Re: Rename max_parallel_degree? In-reply-to: References: <20160426152217.GA548975@alvherre.pgsql> <57508E69.9000505@agliodbs.com> <57509894.9080507@agliodbs.com> <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> Comments: In-reply-to Robert Haas message dated "Mon, 13 Jun 2016 22:09:30 -0400" Date: Tue, 14 Jun 2016 12:16:16 -0400 Message-ID: <9413.1465920976@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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: > Of course, it would be nice if we could make these counters 64-bit > integers, but we can't, because we don't rely on 64-bit reads and > writes to be atomic on all platforms. So instead they'll have to be > uint32. That means they could wrap (if you really work at it) but > subtraction will still return the right answer, so it's OK. OK ... > If we > want to allow the number of parallel workers started to be available > for statistical purposes, we can keep to uint32 values for that > (parallel_register_count_lo and parallel_register_count_hi, for > example), and increment the second one whenever the first one rolls > over to zero. And that's going to be atomic how exactly? 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