Re: BUG #7590: Data corruption using pg_dump only with -Z parameter

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: hrtlik(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
Date: 2012-10-13 12:08:40
Message-ID: 507959C8.1010300@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2012-10-13 12:12:14 Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
Previous Message Craig Ringer 2012-10-13 11:55:11 Re: BUG #7595: terminate process in an unusual way