Re: BUG #12779: pg_dump -Fd doesn't care about -Z - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #12779: pg_dump -Fd doesn't care about -Z
Date
Msg-id CAB7nPqTLSv5qES=9hODzkX62V5XcivP1ij=_iahR_-SriD2AOA@mail.gmail.com
Whole thread Raw
In response to Re: BUG #12779: pg_dump -Fd doesn't care about -Z  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #12779: pg_dump -Fd doesn't care about -Z  (Christoph Berg <christoph.berg@credativ.de>)
Re: BUG #12779: pg_dump -Fd doesn't care about -Z  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z
Next
From: Christoph Berg
Date:
Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z