From: Craig Ringer <ringerc@ringerc.id.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: hrtlik@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
Date: Sat, 13 Oct 2012 20:08:40 +0800
Message-ID: <507959C8.1010300@ringerc.id.au> (raw)
In-Reply-To: <2464.1349807895@sss.pgh.pa.us>
References: <E1TLafo-0003kU-99@wrigleys.postgresql.org>
<2464.1349807895@sss.pgh.pa.us>
On 10/10/2012 02:38 AM, Tom Lane wrote:
> hrtlik@gmail.com writes:
>> The following bug has been logged on the website:
>> Bug reference: 7590
>> Logged by: Jan VodiÄka
>> Email address: hrtlik@gmail.com
>> PostgreSQL version: 9.2.1
>> Operating system: Windows 8
>> Description:
>
>> "pg_dump -Z1 my_db > backup" always make corrupted package.
>
> On Windows, that doesn't seem terribly surprising: Windows will probably
> do newline munging on the process's stdout, which will corrupt
> compressed data since it's not plain text.
pg_dump might want to refuse to write to stdout when in a non-plain-text
mode on Windows if that's the case.
--
Craig Ringer
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: ringerc@ringerc.id.au, tgl@sss.pgh.pa.us, hrtlik@gmail.com
Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
In-Reply-To: <507959C8.1010300@ringerc.id.au>
References: <E1TLafo-0003kU-99@wrigleys.postgresql.org> <2464.1349807895@sss.pgh.pa.us> <507959C8.1010300@ringerc.id.au>
* 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