On Sat, 2019-09-28 at 00:10 -0400, Robert Haas wrote: > I intended it to mean "the entire cluster." Basically, how many > workers out of max_worker_processes are you willing to use for > parallel query, as opposed to other things. I agree that PGC_USERSET > doesn't make any sense.
In that case, PGC_SIGHUP seems most appropriate. It also might make more sense to rename it to reserved_worker_processes and invert the meaning. To me, that would be more clear that it's designed to prevent parallel query from interfering with other uses of worker processes. Another option would be to make it two pools, one for parallel workers and one for everything else, and each one would be controlled by a PGC_POSTMASTER setting. But it seems like some thought went into trying to share the pool of workers[1], so I assume there was a good reason you wanted to do that. Regards, Jeff Davis [1] If I'm reading correctly, it uses both lock-free code and intentional overflow.