pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: christoph.berg@credativ.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z
Date: Tue, 17 Feb 2015 13:52:01 -0500
Message-ID: <21598.1424199121@sss.pgh.pa.us> (raw)
In-Reply-To: <20150217153446.2590.24945@wrigleys.postgresql.org>
References: <20150217153446.2590.24945@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

christoph.berg@credativ.de writes:
> pg_dump -Fd doesn't seem to care about -Z for Z > 0:

Yeah, you're right: whoever wrote pg_dump/compress_io.c seems to have
been utterly clueless about the idea that zlib needs to be told which
compression level to use.  That logic is just treating the compression
level as a binary compress-or-not flag.  cfopen_write() is obviously
losing the compression level info, and even if it weren't, cfopen()
thinks that argument is binary not a number to pass down.  There may be
other subroutines in there and/or in pg_backup_directory.c that missed
the memo as well.

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.

			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



view thread (9+ messages)  latest in thread

Message-ID: <21598.1424199121@sss.pgh.pa.us>
Permalink:  ../21598.1424199121@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21598.1424199121@sss.pgh.pa.us

 · 

reply

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, christoph.berg@credativ.de
  Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z
  In-Reply-To: <21598.1424199121@sss.pgh.pa.us>
  References: <20150217153446.2590.24945@wrigleys.postgresql.org> <21598.1424199121@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