From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: christoph.berg@credativ.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z
Date: Wed, 18 Feb 2015 11:45:13 -0500
Message-ID: <11740.1424277913@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqTLSv5qES=9hODzkX62V5XcivP1ij=_iahR_-SriD2AOA@mail.gmail.com>
References: <20150217153446.2590.24945@wrigleys.postgresql.org>
<21598.1424199121@sss.pgh.pa.us>
<CAB7nPqTLSv5qES=9hODzkX62V5XcivP1ij=_iahR_-SriD2AOA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Paquier <michael.paquier@gmail.com> writes:
> 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.
Committed. I also fixed another problem in this code, which was an
overoptimistic assumption that free() doesn't change errno; we've heard
that it can on OS X at least. That would've resulted in faulty error
reports for file-open failures.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, christoph.berg@credativ.de
Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z
In-Reply-To: <11740.1424277913@sss.pgh.pa.us>
References: <20150217153446.2590.24945@wrigleys.postgresql.org> <21598.1424199121@sss.pgh.pa.us> <CAB7nPqTLSv5qES=9hODzkX62V5XcivP1ij=_iahR_-SriD2AOA@mail.gmail.com> <11740.1424277913@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox