Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows - Mailing list pgsql-hackers

From Kuntal Ghosh
Subject Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows
Date
Msg-id CAGz5QCKDRksMiJPAN2OZmVc_STYiLe4J7beXaGDs9Q6U=ucKUw@mail.gmail.com
Whole thread Raw
In response to [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Responses Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On Fri, Mar 24, 2017 at 11:28 AM, Kuntal Ghosh
<kuntalghosh.2007@gmail.com> wrote:
> Hello,
> In Windows, if one needs to take a dump in plain text format (this is
> the default option, or can be specified using -Fp) with some level of
> compression (-Z[0-9]), an output file has to
> be specified. Otherwise, if the output is redirected to stdout, it'll
> create a corrupted dump (cmd is set to ASCII mode, so it'll put
> carriage returns in the file).
To reproduce the issue, please use the following command in windows cmd:

pg_dump -Z 9 test > E:\test_xu.backup
pg_dump -Fp -Z 9 test > E:\test_xu.backup


-- 
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: [pgsql-www] [HACKERS] Small issue in online devel documentationbuild
Next
From: Rushabh Lathia
Date:
Subject: Re: [HACKERS] create_unique_path and GEQO