pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Philip Semanchuk <philip@americanefficient.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: increased max_parallel_workers_per_gather results in fewer workers?
Date: Wed, 3 Jun 2020 17:36:41 -0500
Message-ID: <20200603223641.GV30144@telsasoft.com> (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:
> > On Jun 3, 2020, at 5:15 PM, Justin Pryzby <pryzby@telsasoft.com> wrote:
> > What version postgres ?
> 
> This is AWS’ version of Postgres 11.6 (“Aurora”) which of course might make a difference.

> > 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

Are you referring to a parallel scan/aggregate/hash/??

Are you able to show a plan for a toy query like SELECT count(col) FROM tbl ,
preferably including a CREATE TABLE tbl AS... ; VACUUM ANALYZE tbl;

Are you able to reproduce with an unpatched postgres ?

-- 
Justin





view thread (13+ messages)  latest in thread

Message-ID: <20200603223641.GV30144@telsasoft.com>
Permalink:  ../20200603223641.GV30144@telsasoft.com/
Also on:    postgresql.org/message-id/20200603223641.GV30144@telsasoft.com

 · 

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: pryzby@telsasoft.com, philip@americanefficient.com, pgsql-performance@lists.postgresql.org
  Subject: Re: increased max_parallel_workers_per_gather results in fewer workers?
  In-Reply-To: <20200603223641.GV30144@telsasoft.com>

* 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