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 1i5AT7-0003YP-KJ for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 15:11:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5AT6-00011c-E6 for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 15:11:40 +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 1i5AR4-0007Hx-9L for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 15:09:34 +0000 Received: from serveurmail01.codata.be ([82.146.123.190]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5AR1-00073N-PI for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 15:09:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 820E3900D0; Tue, 3 Sep 2019 17:09:31 +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 A6cyxnHxcobD; Tue, 3 Sep 2019 17:09:30 +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 E2E68900CE; Tue, 3 Sep 2019 17:09:29 +0200 (CEST) Reply-To: arnaud.listes@codata.eu Subject: Re: Slow statement using parallelism after 9.6>11 upgrade To: Imre Samu Cc: pgsql-general References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> From: "Arnaud L." Message-ID: Date: Tue, 3 Sep 2019 17:09:29 +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 à 17:02, Imre Samu a écrit : > > We have upgraded our database from 9.6 to 11 > > This is now the latest PG ?   PG11.5? Yes, PostgreSQL 11.5, compiled by Visual C++ build 1914, 64-bit. > - the osm2pgsql has an own parallelizations ...  ( osm2pgsql > --number-processes .. ) >    so be careful to add more parallelisation to the PG side with the > same osm2pgsql parameters !   ( check the memory usages! ) > - check the benchmarks and the tunnings: > https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks > - you can ask help on the  : "osm dev mail list" (="dev OpenStreetMap > developer discusssion" https://lists.openstreetmap.org/listinfo/dev ) Yes, I know. It as been fine tuned over some time now to fit our server's capacity. Disabling parallelisme has allowed the update to run in ~5000s, which is consistent with what we could witness before the upgrade. I had started writing an issue on the osm2pgsql github before realizing it was probably a PG-only issue. Cheers -- Arnaud