Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5AMb-0003Hh-Sq for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 15:04:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5AMa-0006rv-Pn for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 15:04:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5AMa-0006ne-EZ for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 15:04:56 +0000 Received: from serveurmail01.codata.be ([82.146.123.190]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5AMY-00070V-B8 for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 15:04:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 03E8E900D0; Tue, 3 Sep 2019 17:04:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at serveurmail01.codata.be Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SfH+snQKwFSd; Tue, 3 Sep 2019 17:04:52 +0200 (CEST) Received: from [10.0.0.100] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTPSA id BBCBE900CE; Tue, 3 Sep 2019 17:04:51 +0200 (CEST) Reply-To: arnaud.listes@codata.eu Subject: Re: Slow statement using parallelism after 9.6>11 upgrade To: Paul Ramsey Cc: pgsql-general References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> <23865.1567518191@sss.pgh.pa.us> <938dfead-0605-8f91-8f21-8871f44bd6ff@codata.eu> From: "Arnaud L." Message-ID: <3ba3bd1d-161a-3ef1-f04f-03a9664e7b9c@codata.eu> Date: Tue, 3 Sep 2019 17:04:50 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le 03/09/2019 à 16:39, Paul Ramsey a écrit : >> On Sep 3, 2019, at 7:06 AM, Arnaud L. wrote: >> I've setup parallel_tuple_cost to 1.0 parallel_setup_cost to 5000.0 for the time being which solves this specific problem. These value don't look very sensible though, they are very high compared to the default ones. > > You can also leave that setting unchanged and just change the behaviour on your one table: > > ALTER TABLE nodes SET ( parallel_workers = 0); Nice, this will fix this precise query and leave parallelism in place for the other ones. Thanks ! -- Arnaud