pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Philip Semanchuk <philip@americanefficient.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: increased max_parallel_workers_per_gather results in fewer workers?
Date: Thu, 4 Jun 2020 10:56:04 +0200
Message-ID: <20200604085604.xvhr4earrplt73qv@development> (raw)
In-Reply-To: <1F407302-1203-41DB-9A9C-69EA0FAFDCC6@americanefficient.com>
References: <B2C0B20E-4562-4F0B-A876-922EA4AC22A8@americanefficient.com>
	<20200603211526.GU30144@telsasoft.com>
	<1F407302-1203-41DB-9A9C-69EA0FAFDCC6@americanefficient.com>

On Wed, Jun 03, 2020 at 06:23:57PM -0400, Philip Semanchuk wrote:
>
> ...
>
>I then ran the EXPLAIN ANALYZE and got the same slow runtime (1473s) and 1 worker in the EXPLAIN ANALYZE output.
>
>
>> I guess you should show an explain analyze, specifically "Workers
>> Planned/Launched", maybe by linking to explain.depesz.com
>
>Out of an abundance of caution, our company has a policy of not pasting our plans to public servers. However, I can confirm that when I set max_parallel_workers_per_gather > 4 and the runtime increases, this is what’s in the EXPLAIN ANALYZE output:
>
>         Workers Planned: 1
>         Workers Launched: 1
>
>FWIW, the Planning Time reported in EXPLAIN ANALYZE output doesn’t vary significantly, only from 411-443ms, and the variation within that range correlates only very weakly with max_parallel_workers_per_gather.
>

Well, that policy is stupid and it makes it unnecessarily harder to
answer your questions. We really need to see the plans, it's much harder
to give you any advices without it. We can only speculate about what's
going on.

It's understandable there may be sensitive information in the plan
(parameter values, ...) but that can be sanitized before posting.

We need to see plans for the good and bad case, so that we can compare
them, look at the plan general shapes, costs, etc.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services 





view thread (13+ messages)  latest in thread

Message-ID: <20200604085604.xvhr4earrplt73qv@development>
Permalink:  ../20200604085604.xvhr4earrplt73qv@development/
Also on:    postgresql.org/message-id/20200604085604.xvhr4earrplt73qv@development

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, philip@americanefficient.com, pryzby@telsasoft.com, pgsql-performance@lists.postgresql.org
  Subject: Re: increased max_parallel_workers_per_gather results in fewer workers?
  In-Reply-To: <20200604085604.xvhr4earrplt73qv@development>

* 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