On 10/10/2012 02:38 AM, Tom Lane wrote:
> hrtlik(at)gmail(dot)com writes:
>> The following bug has been logged on the website:
>> Bug reference: 7590
>> Logged by: Jan VodiÄka
>> Email address: hrtlik(at)gmail(dot)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