pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Darren McClelland <darren@zonarsystems.com>
To: pgsql-admin@postgresql.org
Subject: pg_dumpall and pg_restore issues
Date: Tue, 13 Aug 2002 18:07:56 -0700
Message-ID: <20020814010753.9591B4754A0@postgresql.org> (raw)

Hi,

I'm having problems using pg_dumpall and pg_restore together.
Basically I can't get pg_restore to recognise the dump as a valid archive.

Example:
Create a dump like this pg_dumpall -U postgres -Fc -Z 9  > /tmp/dump
Then try to restore it
$
pg_restore -U postgres -Fc /tmp/dump
pg_restore: [archiver] did not find magic string in file header

or

$pg_restore -U postgres  /tmp/dump
pg_restore: [archiver] input file does not appear to be a valid archive

The dump file is strange too, it starts out as a standard SQL dump like 
pg_dump produces, then shifts to binary, Iassume thats the compressed data. 
The same pattern contnues throughout the file, straight SQL text then big 
chunks of binary data.

Version:
$pg_dumpall --version
pg_dumpall (PostgreSQL) 7.2.1

Does anyone have any ideas?
Thanks,
Darren McClelland



view thread (3+ messages)  latest in thread

Message-ID: <20020814010753.9591B4754A0@postgresql.org>
Permalink:  ../20020814010753.9591B4754A0@postgresql.org/
Also on:    postgresql.org/message-id/20020814010753.9591B4754A0@postgresql.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 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-admin@postgresql.org
  Cc: darren@zonarsystems.com
  Subject: Re: pg_dumpall and pg_restore issues
  In-Reply-To: <20020814010753.9591B4754A0@postgresql.org>
  References: <20020814010753.9591B4754A0@postgresql.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