Re: Rename max_parallel_degree?
Julien Rouhaud <julien.rouhaud@dalibo.com>
From: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Josh Berkus <josh@agliodbs.com>,
"David G. Johnston" <david.g.johnston@gmail.com>,
Amit Kapila <amit.kapila16@gmail.com>, Peter Geoghegan <pg@heroku.com>,
Noah Misch <noah@leadboat.com>, David Rowley <david.rowley@2ndquadrant.com>,
Alvaro Herrera <alvherre@2ndquadrant.com>,
Magnus Hagander <magnus@hagander.net>, Bruce Momjian <bruce@momjian.us>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2016-06-13T09:42:31Z
Lists: pgsql-hackers
Attachments
- global_max_parallel_workers-v3.diff (text/plain) patch v3
On 13/06/2016 03:16, Robert Haas wrote: > On Sat, Jun 11, 2016 at 6:24 PM, Julien Rouhaud > <julien.rouhaud@dalibo.com> wrote: >> On 11/06/2016 23:37, Julien Rouhaud wrote: >>> On 09/06/2016 16:04, Robert Haas wrote: >>>> There remains only the task of adding max_parallel_degree >>>> as a system-wide limit >>>> >>> >>> PFA a patch to fix this open item. I used the GUC name provided in the >>> 9.6 open item page (max_parallel_workers), with a default value of 4. >>> Value 0 is another way to disable parallel query. >>> >> >> Sorry I just realized I made a stupid mistake, I didn't check in all >> slots to get the number of active parallel workers. Fixed in attached v2. > > I think instead of adding a "bool parallel" argument to > RegisterDynamicBackgroundWorker, we should just define a new constant > for bgw_flags, say BGW_IS_PARALLEL_WORKER. > Agreed, and fixed in attached v3. -- Julien Rouhaud http://dalibo.com - http://dalibo.org