pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Peter Geoghegan <pg@heroku.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Rename max_parallel_degree?
Date: Tue, 14 Jun 2016 12:16:16 -0400
Message-ID: <9413.1465920976@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZWASaz5_wwF8RifWh95AmzzJUcLqgW5aVZJdRMO=m0Rw@mail.gmail.com>
References: <20160426152217.GA548975@alvherre.pgsql>
	<57508E69.9000505@agliodbs.com>
	<CAKFQuwbJwf26X0JFOWMLZYpaUobmDVEsp3YDvNhHtM8YDNbaKQ@mail.gmail.com>
	<WM!de247c8715b277e7427f9aaacd540544aa13b6024b86cc6bd18c6481f34478ca83e1c40296c1e8a66a23a078bb07191d!@mailstronghold-3.zmailcloud.com>
	<57509894.9080507@agliodbs.com>
	<CAKFQuwaBbH53x+i0MbaFzBDh3DhAXPS7EzjpEGKVvPRW-6HzNg@mail.gmail.com>
	<CA+TgmobYx11xuXy_GtuT=1ejh27K5t-jrc=gOk+XWhxUbpLbkQ@mail.gmail.com>
	<11330.1464961183@sss.pgh.pa.us>
	<CA+TgmoZF+-ckDHethxzznM-b-vraFvUXz-jXTDA8-cCUodpzGg@mail.gmail.com>
	<WM!a97c0cfedc9cd65ee73bc40bafb7ef019892cb9797432fc9c5209f5ce29a85ceab4031e102c0b11649cc454d31683eb4!@mailstronghold-1.zmailcloud.com>
	<57581603.3040309@agliodbs.com>
	<18837.1465395492@sss.pgh.pa.us>
	<CA+TgmoZn4E_6Yw-irgqaxsjPxf=z=OrkB0sOWcj5J7a7V2oSog@mail.gmail.com>
	<dabc5b37-b51e-169a-15f1-8441d5bc4c0b@dalibo.com>
	<5856af3e-3c20-89d1-3a9c-af3c2cd3a92b@dalibo.com>
	<CA+TgmobUZZV6sMj-ZXP71vV5zaHXNtUu5uL+oaeEw54_SySE2Q@mail.g! mail.com>
	<9b599d4c-cb80-4f1f-48ad-169469579efe@dalibo.com>
	<CA+TgmoZWASaz5_wwF8RifWh95AmzzJUcLqgW5aVZJdRMO=m0Rw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> 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



view thread (185+ messages)  latest in thread

Message-ID: <9413.1465920976@sss.pgh.pa.us>
Permalink:  ../9413.1465920976@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9413.1465920976@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, julien.rouhaud@dalibo.com, josh@agliodbs.com, david.g.johnston@gmail.com, amit.kapila16@gmail.com, pg@heroku.com, noah@leadboat.com, david.rowley@2ndquadrant.com, alvherre@2ndquadrant.com, magnus@hagander.net, bruce@momjian.us
  Subject: Re: Rename max_parallel_degree?
  In-Reply-To: <9413.1465920976@sss.pgh.pa.us>
  References: <20160426152217.GA548975@alvherre.pgsql> <WM!de247c8715b277e7427f9aaacd540544aa13b6024b86cc6bd18c6481f34478ca83e1c40296c1e8a66a23a078bb07191d!@mailstronghold-3.zmailcloud.com> <57509894.9080507@agliodbs.com> <CAKFQuwaBbH53x+i0MbaFzBDh3DhAXPS7EzjpEGKVvPRW-6HzNg@mail.gmail.com> <CA+TgmobYx11xuXy_GtuT=1ejh27K5t-jrc=gOk+XWhxUbpLbkQ@mail.gmail.com> <11330.1464961183@sss.pgh.pa.us> <CA+TgmoZF+-ckDHethxzznM-b-vraFvUXz-jXTDA8-cCUodpzGg@mail.gmail.com> <WM!a97c0cfedc9cd65ee73bc40bafb7ef019892cb9797432fc9c5209f5ce29a85ceab4031e102c0b11649cc454d31683eb4!@mailstronghold-1.zmailcloud.com> <57581603.3040309@agliodbs.com> <18837.1465395492@sss.pgh.pa.us> <CA+TgmoZn4E_6Yw-irgqaxsjPxf=z=OrkB0sOWcj5J7a7V2oSog@mail.gmail.com> <dabc5b37-b51e-169a-15f1-8441d5bc4c0b@dalibo.com> <5856af3e-3c20-89d1-3a9c-af3c2cd3a92b@dalibo.com> <9b599d4c-cb80-4f1f-48ad-169469579efe@dalibo.com> <CA+TgmoZWASaz5_wwF8RifWh95AmzzJUcLqgW5aVZJdRMO=m0Rw@mail.gmail.com> <9413.1465920976@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox