Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHb4G-00025h-BS for pgsql-performance@arkaria.postgresql.org; Wed, 22 Nov 2017 19:52:20 +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 1eHb4F-0004r9-GE for pgsql-performance@arkaria.postgresql.org; Wed, 22 Nov 2017 19:52:19 +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 1eHb4F-0004qz-9h for pgsql-performance@lists.postgresql.org; Wed, 22 Nov 2017 19:52:19 +0000 Received: from master.mhcomputing.net ([2607:f1c0:810:6500::1] helo=mail.mhcomputing.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eHb4B-0006zb-W0 for pgsql-performance@lists.postgresql.org; Wed, 22 Nov 2017 19:52:18 +0000 Received: from [IPv6:2001:470:3d:201:d528:95b4:9496:54fe] (unknown [IPv6:2001:470:3d:201:d528:95b4:9496:54fe]) by mail.mhcomputing.net (Postfix) with ESMTPSA id 0425D16B; Wed, 22 Nov 2017 11:52:11 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: pg_dump 3 times as slow after 8.4 -> 9.5 upgrade From: Matthew Hall In-Reply-To: <12D87F70-956E-499B-9532-DAC52F419837@filmlance.se> Date: Wed, 22 Nov 2017 11:52:11 -0800 Cc: "pgsql-performance@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: 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> <20863.1511298080@sss.pgh.pa.us> <13B8A868-BB94-4A4B-81AF-EB3DCC379439@filmlance.se> <8337E0CC-47A3-4A5F-8156-31BE1E1F0484@filmlance.se> <73DE6D60-EB64-42D8-B57F-538C617CEA23@filmlance.se> <12D87F70-956E-499B-9532-DAC52F419837@filmlance.se> To: "Henrik Cednert (Filmlance)" X-Mailer: Apple Mail (2.3124) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Nov 22, 2017, at 5:06 AM, Henrik Cednert (Filmlance) = wrote: >=20 > When investigating the zlib lead I looked at 8.4 installation and 9.5 = installation. 9.5 includes zlib.h = (/Library/PostgreSQL//9.5/include/zlib.h), but 8.4 doesn't. But that's a = header file and I have no idea how that really works and if that's the = one used by pgres9.5 or not. The version in it says 1.2.8 and that's = what the Instruments are showing when I monitor pg_dump while running.=20= >=20 > Guess I'll have to install instruments in a dev env and do a pg_dump = with 8.4 to see the difference. Tedious. =3D/=20 I would also check the library linkages of the pg_dump binaries. See if one thing is using an embedded zlib and the other a system zlib. Then you could imagine one didn't get compiled with the best-performing = CFLAGS, etc. Matthew.=