Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7A4349F9576 for ; Tue, 21 Aug 2007 22:00:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 01935-07 for ; Tue, 21 Aug 2007 22:00:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail2.yozons.com (mail2.yozons.com [63.251.168.97]) by postgresql.org (Postfix) with ESMTP id E4B959F9429 for ; Tue, 21 Aug 2007 22:00:35 -0300 (ADT) Received: from [192.168.1.2] (pool-72-86-17-48.sttlwa.fios.verizon.net [72.86.17.48]) (authenticated bits=0) by mail2.yozons.com (8.12.10/8.12.10) with ESMTP id l7M10YpH010818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 21 Aug 2007 18:00:34 -0700 Message-ID: <46CB8AB8.4040206@computer.org> Date: Tue, 21 Aug 2007 18:00:40 -0700 From: David Wall Reply-To: d.wall@computer.org User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: 8.2.4 pg_restore on WinXP and pipes References: <46CB81EF.7080403@computer.org> <46CB41F2.EE98.0025.0@wicourts.gov> In-Reply-To: <46CB41F2.EE98.0025.0@wicourts.gov> Content-Type: multipart/alternative; boundary="------------080805050406060405080507" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/270 X-Sequence-Number: 26601 This is a multi-part message in MIME format. --------------080805050406060405080507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Yes it does the same thing: $ gunzip < mydb.dump.20070819.gz | pg_restore -v -O -d mydb pg_restore: [archiver] did not find magic string in file header Most odd since it seems to work just fine if gunzip first and then use: pg_restore -v -O -d mydb < mydb.dump.20070819 David Kevin Grittner wrote: >>>> On Tue, Aug 21, 2007 at 7:23 PM, in message <46CB81EF.7080403@computer.org>, >>>> > David Wall wrote: > >> I'm using cygwin on WinXP >> >> gunzip -c backup81.gz | pg_restore -v -O -d mydb >> >> This returned an error: pg_restore: [archiver] did not find magic >> string in file header >> > > Out of curiosity, does it do the same thing for?: > > gunzip < backup81.gz | pg_restore -v -O -d mydb > > -Kevin > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > > --------------080805050406060405080507 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Yes it does the same thing:

$ gunzip < mydb.dump.20070819.gz | pg_restore -v -O -d mydb
pg_restore: [archiver] did not find magic string in file header


Most odd since it seems to work just fine if gunzip first and then use:

pg_restore -v -O -d mydb < mydb.dump.20070819

David



Kevin Grittner wrote:
On Tue, Aug 21, 2007 at  7:23 PM, in message <46CB81EF.7080403@computer.org>,
        
David Wall <d.wall@computer.org> wrote: 
  
I'm using cygwin on WinXP

gunzip -c backup81.gz | pg_restore -v -O -d mydb

This returned an error:  pg_restore: [archiver] did not find magic 
string in file header
    
 
Out of curiosity, does it do the same thing for?:
 
gunzip < backup81.gz | pg_restore -v -O -d mydb
 
-Kevin
 



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

  
--------------080805050406060405080507--