Re: BUG #7590: Data corruption using pg_dump only with -Z parameter - Mailing list pgsql-bugs

From Craig Ringer
Subject Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
Date
Msg-id 507959C8.1010300@ringerc.id.au
Whole thread Raw
In response to Re: BUG #7590: Data corruption using pg_dump only with -Z parameter  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #7590: Data corruption using pg_dump only with -Z parameter  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #7595: terminate process in an unusual way
Next
From: Craig Ringer
Date:
Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter