Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHFfc-0002qz-Uy for pgsql-performance@arkaria.postgresql.org; Tue, 21 Nov 2017 21:01:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHFfc-0007Ll-HQ for pgsql-performance@arkaria.postgresql.org; Tue, 21 Nov 2017 21:01:28 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eHFfc-0007LW-C0 for pgsql-performance@lists.postgresql.org; Tue, 21 Nov 2017 21:01:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eHFfZ-0007sG-El for pgsql-performance@lists.postgresql.org; Tue, 21 Nov 2017 21:01:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vALL1KiR020864; Tue, 21 Nov 2017 16:01:20 -0500 From: Tom Lane To: "Henrik Cednert (Filmlance)" cc: "pgsql-performance@lists.postgresql.org" Subject: Re: pg_dump 3 times as slow after 8.4 -> 9.5 upgrade In-reply-to: <2D863ADA-134E-414B-82DD-88E53D621697@filmlance.se> References: <8F33D0C7-E12E-4996-990C-3CF0C5ED0437@filmlance.se> <7442.1511283687@sss.pgh.pa.us> <14231.1511289969@sss.pgh.pa.us> <2D863ADA-134E-414B-82DD-88E53D621697@filmlance.se> Comments: In-reply-to "Henrik Cednert (Filmlance)" message dated "Tue, 21 Nov 2017 18:53:29 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20862.1511298080.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Nov 2017 16:01:20 -0500 Message-ID: <20863.1511298080@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Henrik Cednert (Filmlance)" writes: > I'm not sure if I can attach screenshots here. Trying, screenshot from i= nstruments after running for a few mins. It looks like practically all of pg_dump's time is going into deflate(), ie zlib. I don't find that terribly surprising in itself, but it offers no explanation for why you'd see a slowdown --- zlib isn't even our code, nor has it been under active development for a long time, so presumably 8.4 and 9.5 would have used the same version. Perhaps you were doing the 8.4 dump without compression enabled? regards, tom lane