pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Wall <d.wall@computer.org>
To: pgsql-admin@postgresql.org
Subject: Re: 8.2.4 pg_restore on WinXP and pipes
Date: Tue, 21 Aug 2007 18:00:40 -0700
Message-ID: <46CB8AB8.4040206@computer.org> (raw)
In-Reply-To: <46CB41F2.EE98.0025.0@wicourts.gov>
References: <46CB81EF.7080403@computer.org>
	<46CB41F2.EE98.0025.0@wicourts.gov>

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
>
>   

view thread (3+ messages)

Message-ID: <46CB8AB8.4040206@computer.org>
Permalink:  ../46CB8AB8.4040206@computer.org/
Also on:    postgresql.org/message-id/46CB8AB8.4040206@computer.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: d.wall@computer.org
  Subject: Re: 8.2.4 pg_restore on WinXP and pipes
  In-Reply-To: <46CB8AB8.4040206@computer.org>

* 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