Re: parallel.c is not marked as test covered - Mailing list pgsql-hackers

From Robert Haas
Subject Re: parallel.c is not marked as test covered
Date
Msg-id CA+TgmoaaMAv5jwTDFWWfwjg3rXx7BuFb4vNATHUywq2JJy6agw@mail.gmail.com
Whole thread Raw
In response to Re: parallel.c is not marked as test covered  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
On Wed, May 11, 2016 at 1:48 PM, David G. Johnston
<david.g.johnston@gmail.com> wrote:
> What happens when there are no workers available due to max_worker_processes
> already being assigned?

Then the leader runs the plan after all.

> Related question, if max_parallel_degree is >1 and "the requested number of
> workers may not actually be available at runtime" is true, does the degree
> of parallelism minimize at 1 worker + leader or will the leader simply run
> the query by itself?

If the leader can get no workers at all, it will simply run the query
by itself.  Of course, it tries to get as many as it can.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: parallel.c is not marked as test covered
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: Does Type Have = Operator?