Re: how does PostgreSQL determine how many parallel processes to start - Mailing list pgsql-general

From Laurenz Albe
Subject Re: how does PostgreSQL determine how many parallel processes to start
Date
Msg-id d292a6fca7fec8621420178618d34ee174ee2efe.camel@cybertec.at
Whole thread Raw
In response to how does PostgreSQL determine how many parallel processes to start  (Luca Ferrari <fluca1978@gmail.com>)
Responses Re: how does PostgreSQL determine how many parallel processes to start  (Luca Ferrari <fluca1978@gmail.com>)
List pgsql-general
On Fri, 2021-02-19 at 10:38 +0100, Luca Ferrari wrote:
> I know that parallel processes can be limited by
> max_parallel_workers_per_gather and max_parallel_workers, as well as
> the condition to consider a parallel plan is min_table_scan_size (and
> index). But I would like to understand, once a table has been
> considered for a parallel plan, and there is room for other workers,
> how will PostgreSQL decide to start another process?

During planning, it will generate parallel and non-parallel plans
and take the one it estimates to be cheapest.

At execution time, PostgreSQL will use as many of the planned workers
as are currently available (max_parallel_workers).

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: how does PostgreSQL determine how many parallel processes to start
Next
From: Luca Ferrari
Date:
Subject: Re: how does PostgreSQL determine how many parallel processes to start