Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TN0WW-0008LJ-GS for pgsql-bugs@postgresql.org; Sat, 13 Oct 2012 12:08:56 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TN0WQ-0000bD-15 for pgsql-bugs@postgresql.org; Sat, 13 Oct 2012 12:08:55 +0000 Received: by mail-pa0-f46.google.com with SMTP id hz1so3575141pad.19 for ; Sat, 13 Oct 2012 05:08:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=Hm6iLz4MCMy89KLEC2LvTRIxByADKS05Q054JIzGxNk=; b=m2pOYLMu/hvZs/7jRfnOGEj0JKRcmibU5G6tnUBgc8IYBfCW/lP9ylGSDNFX4Do+yE NbODTWpxndt6KZUeax6EaOII47m+Ya6y/3CA/Q+PLmCXa9Ph8laYuoT3xwcSm3mHAG64 KHXkx7yyLUA+tjjRgwJIcGaH4Ns97tkoy1f/YY2kqiRuZ001HBpVE3OqTGsPr8OdO+bi M+uxYaXhBmj6DWEhO4st6ItOpKTcVGXS7G1hS+zmqEl2PmH6LcGxdCAE069kjscVWWov CzPrbuR909oDmIE6ivtZ2u+stiiCbczsIxwhUhOI53gPRpPhiQcKV4iIfFtA6p/rdhJD Cikg== Received: by 10.66.88.40 with SMTP id bd8mr18653712pab.36.1350130128790; Sat, 13 Oct 2012 05:08:48 -0700 (PDT) Received: from ayaki.localdomain (58-7-144-234.dyn.iinet.net.au. [58.7.144.234]) by mx.google.com with ESMTPS id pw9sm5964573pbb.42.2012.10.13.05.08.43 (version=SSLv3 cipher=OTHER); Sat, 13 Oct 2012 05:08:46 -0700 (PDT) Message-ID: <507959C8.1010300@ringerc.id.au> Date: Sat, 13 Oct 2012 20:08:40 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Tom Lane CC: hrtlik@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7590: Data corruption using pg_dump only with -Z parameter References: <2464.1349807895@sss.pgh.pa.us> In-Reply-To: <2464.1349807895@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkCLP+gyxGxXVTag1N49v7WQriSlUGzR//DheJDEQHJ27KJDf3bbjkaJ8RxsSkxRXx3TaXc X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/116 X-Sequence-Number: 34416 On 10/10/2012 02:38 AM, Tom Lane wrote: > 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. 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