pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hrtlik@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
Date: Tue, 09 Oct 2012 14:38:15 -0400
Message-ID: <2464.1349807895@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TLafo-0003kU-99@wrigleys.postgresql.org>
References: <E1TLafo-0003kU-99@wrigleys.postgresql.org>

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.  There's not a lot we can do
to prevent that.  Try it like this instead:

	pg_dump -Z1 -f backup.gz my_db

to keep the data away from Windows' interference.

			regards, tom lane




view thread (10+ messages)  latest in thread

Message-ID: <2464.1349807895@sss.pgh.pa.us>
Permalink:  ../2464.1349807895@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2464.1349807895@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hrtlik@gmail.com
  Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter
  In-Reply-To: <2464.1349807895@sss.pgh.pa.us>
  References: <E1TLafo-0003kU-99@wrigleys.postgresql.org> <2464.1349807895@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox