Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BE83847595D for ; Tue, 13 Aug 2002 21:21:09 -0400 (EDT) Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id ADEAA47589C for ; Tue, 13 Aug 2002 21:21:05 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g7E1L4X20521; Tue, 13 Aug 2002 21:21:04 -0400 (EDT) From: Bruce Momjian Message-Id: <200208140121.g7E1L4X20521@candle.pha.pa.us> Subject: Re: pg_dumpall and pg_restore issues In-Reply-To: <20020814010753.9591B4754A0@postgresql.org> To: darren@zonarsystems.com Date: Tue, 13 Aug 2002 21:21:04 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/175 X-Sequence-Number: 5290 Yes, pg_dumpall doesn't recognize the -F flags. It only dumps as text format. The manual page says: Any other command line parameters are passed to the underlying calls. This is useful to control some aspects of the output format, but some options such as , , and dbname should be avoided. We should throw an error if -f or -F is passed to pg_dumpall. I will add some code to try and catch that for 7.3. --------------------------------------------------------------------------- Darren McClelland wrote: > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073