Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows
| От | Kuntal Ghosh |
|---|---|
| Тема | Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows |
| Дата | |
| Msg-id | CAGz5QCKDRksMiJPAN2OZmVc_STYiLe4J7beXaGDs9Q6U=ucKUw@mail.gmail.com обсуждение исходный текст |
| Ответ на | [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows (Kuntal Ghosh <kuntalghosh.2007@gmail.com>) |
| Ответы |
Re: [HACKERS] BUG: pg_dump generates corrupted gzip file in Windows
|
| Список | 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 по дате отправления: