Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YO7ka-000548-W5 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 16:45:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YO7ka-0001Ve-9D for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 16:45:24 +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 1YO7kZ-0001TL-0V for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 16:45:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YO7kW-0004yF-2Y for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 16:45:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t1IGjDTj011741; Wed, 18 Feb 2015 11:45:13 -0500 From: Tom Lane To: Michael Paquier cc: christoph.berg@credativ.de, pgsql-bugs@postgresql.org Subject: Re: BUG #12779: pg_dump -Fd doesn't care about -Z In-reply-to: References: <20150217153446.2590.24945@wrigleys.postgresql.org> <21598.1424199121@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 18 Feb 2015 14:59:17 +0900" Date: Wed, 18 Feb 2015 11:45:13 -0500 Message-ID: <11740.1424277913@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Michael Paquier 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