Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgc0A-0003yg-Aj for pgsql-performance@arkaria.postgresql.org; Wed, 03 Jun 2020 22:36:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgc08-0005w3-8Q for pgsql-performance@arkaria.postgresql.org; Wed, 03 Jun 2020 22:36:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgc07-0005s8-RU for pgsql-performance@lists.postgresql.org; Wed, 03 Jun 2020 22:36:48 +0000 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jgc05-0000Mv-CR for pgsql-performance@lists.postgresql.org; Wed, 03 Jun 2020 22:36:46 +0000 Received: by mail-io1-xd42.google.com with SMTP id d7so4194760ioq.5 for ; Wed, 03 Jun 2020 15:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Uu5onXD7pGx5eVjvAf/yoIi7vgHpIDMQwyMUeOECBUI=; b=dgANwFLiD+vdzMS9QhXoZiuZ+GvNcRUbH66AQtaQtmvURhq66CKlH6Y7sNRPrTklwo GLZwXZRCzOyPIsoHv1ICb6giuzmrC5GL56Ej1BCJ/a9nm+NWZz/jhtQcspDQxDyhxLMB Vw4aDU2bJ59Hyt+mLM+vR9OJUe9NV32v3e8ct5WtJMhbTrQcUxAmRT2uwAQFhUNEL/eg Vmr2GTHc+7x9EhNIWzuQp/zYrQLfIR0TecoCCLgcEiCyZMzXjEM1ISBJyfHpPSN2OOBu EtnZJYwJVVubI9TK3Y+h4W9DLq+zys6kEA673UipRpJveJUR0b2zmWvUrGQrWOnbPnEj gNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Uu5onXD7pGx5eVjvAf/yoIi7vgHpIDMQwyMUeOECBUI=; b=UAAl39nreA9lJFsbfq7uvCJyWWb5GQbBXQrsOO8ZyJYa7f9rDhCICldBGl6LZazUhn IpFUyuTsmf58ZStOWSP/O7ibOuJzi7685dc3MBLYuYKLPqmVhwl56SyaDWPKC/uqxTZx vokvu84iHDoQO6kGtYBJgvWiKpKcayMHGg5J4JTyOig9HmZVmg6E8b+GOgVePHUNV/Jy 9ClK5UvdPETg+eLn64bGWtxCU3mbpwppInpRDQ3mo1nUwfiC86uXIT8GWfDzpm+KRU1j mYXA1xFYiWhEU5DBagFujbOSB8PV8+/v2JRpKjxAZGQusjAQZedQ4k9YCZp9sXcbfBEa HVwg== X-Gm-Message-State: AOAM530daH+JNzMKQS3QOnd0JAnDlmj2UI3rSR8lkpjpcXozvOfp6S67 tXG+7QTNb8ceGs+GJ6K+2TQP5g== X-Google-Smtp-Source: ABdhPJzEr4W+vExejnk9YZwOX45hcQx9s8VZ7SopZlGQKoBYB0gLGhW7dqzB03gT2eHi9xePASRhQA== X-Received: by 2002:a02:1746:: with SMTP id 67mr1816162jah.103.1591223804514; Wed, 03 Jun 2020 15:36:44 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w18sm486582ili.19.2020.06.03.15.36.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2020 15:36:42 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 353358000CD; Wed, 3 Jun 2020 17:36:41 -0500 (CDT) Date: Wed, 3 Jun 2020 17:36:41 -0500 From: Justin Pryzby To: Philip Semanchuk Cc: pgsql-performance@lists.postgresql.org Subject: Re: increased max_parallel_workers_per_gather results in fewer workers? Message-ID: <20200603223641.GV30144@telsasoft.com> References: <20200603211526.GU30144@telsasoft.com> <1F407302-1203-41DB-9A9C-69EA0FAFDCC6@americanefficient.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1F407302-1203-41DB-9A9C-69EA0FAFDCC6@americanefficient.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jun 03, 2020 at 06:23:57PM -0400, Philip Semanchuk wrote: > > On Jun 3, 2020, at 5:15 PM, Justin Pryzby 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