Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0CF8147589C for ; Tue, 13 Aug 2002 21:07:56 -0400 (EDT) Received: from bison.seattleserver.com (bison.seattleserver.com [216.57.201.10]) by postgresql.org (Postfix) with SMTP id 9591B4754A0 for ; Tue, 13 Aug 2002 21:07:53 -0400 (EDT) Received: (qmail 19294 invoked from network); 14 Aug 2002 01:07:57 -0000 Received: from unknown (HELO there) (12.230.91.75) by bison.seattleserver.com with SMTP; 14 Aug 2002 01:07:57 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Darren McClelland Reply-To: darren@zonarsystems.com Organization: Zonar Systems Inc. To: pgsql-admin@postgresql.org Subject: pg_dumpall and pg_restore issues Date: Tue, 13 Aug 2002 18:07:56 -0700 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020814010753.9591B4754A0@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/174 X-Sequence-Number: 5289 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