Re: Upgrading 8.2 to 8.4: pg_restore: did not find magic string in file header\n

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andreas Laggner <andreas(dot)laggner(at)vti(dot)bund(dot)de>
Subject: Re: Upgrading 8.2 to 8.4: pg_restore: did not find magic string in file header\n
Date: 2010-11-19 17:15:42
Message-ID: 201011190915.43170.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 19 November 2010 8:29:38 am Tom Lane wrote:
> Andreas Laggner <andreas(dot)laggner(at)vti(dot)bund(dot)de> writes:
> > i cannot restore my data from 8.2 to 8.4 because i always get this error
> > message, does anyone know what to do??
>
> It sounds like you're trying to use pg_restore on a plain-text (SQL
> script) dump file. Run it through psql, instead.
>
> regards, tom lane

Out of curiosity what would trigger this? When I have tried to run a plain text
file through pg_restore I get:

aklaver(at)tucker:~$ pg_restore -d test -U postgres test.sql
pg_restore: [archiver] input file does not appear to be a valid archive

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jon Nelson 2010-11-19 17:51:32 Regarding EXPLAIN and width calculations
Previous Message Alvaro Herrera 2010-11-19 17:04:47 Re: Forums at postgresql.com.au