Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YO0l5-0004uI-AX for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 09:17:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YO0l4-0001RR-5H for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 09:17:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YO0l3-0001RK-Do for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 09:17:25 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YO0kv-0004ow-Je for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 09:17:23 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 6D12D1B60A5; Wed, 18 Feb 2015 10:17:14 +0100 (CET) Received: from msg.credativ.de (wan3.credativ.com [94.79.138.166]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: cbe@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 130FB1B6088; Wed, 18 Feb 2015 10:17:14 +0100 (CET) Date: Wed, 18 Feb 2015 10:17:12 +0100 From: Christoph Berg To: Michael Paquier Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z Message-ID: <20150218091712.GA26116@msg.credativ.de> Mail-Followup-To: Christoph Berg , Michael Paquier , Tom Lane , pgsql-bugs@postgresql.org References: <20150217153446.2590.24945@wrigleys.postgresql.org> <21598.1424199121@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Re: Michael Paquier 2015-02-18 > On Wed, Feb 18, 2015 at 3:52 AM, Tom Lane wrote: > > This doesn't look tremendously hard to fix, but it's not a one-liner > > either. Don't have time for it personally right now. > > Interesting. The call to gzopen is missing the compression level, > always passing either 'w' or 'wb', while for example to write with a > compression level of 6 we should pass w6 or wb6. > > The patch attached addresses that. The patch works for me: $ paste <(du ?.fd) <(du ?.fd.patched) 5392 0.fd 5392 0.fd.patched 1164 1.fd 1492 1.fd.patched 1164 2.fd 1448 2.fd.patched 1164 3.fd 1400 3.fd.patched 1164 4.fd 1244 4.fd.patched 1164 5.fd 1156 5.fd.patched 1164 6.fd 1164 6.fd.patched 1164 7.fd 1164 7.fd.patched 1164 8.fd 1164 8.fd.patched 1164 9.fd 1164 9.fd.patched (I guess the next step would be to support other compressors, xz yields a 860kB backup on this trivial test data...) Mit freundlichen Grüßen, Christoph Berg -- Senior Berater, Tel.: +49 (0)21 61 / 46 43-187 credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209 Hohenzollernstr. 133, 41061 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer pgp fingerprint: 5C48 FE61 57F4 9179 5970 87C6 4C5A 6BAB 12D2 A7AE -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs