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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Laggner <andreas(dot)laggner(at)vti(dot)bund(dot)de>
Cc: PostgreSQL Mailingliste <pgsql-general(at)postgresql(dot)org>
Subject: Re: Upgrading 8.2 to 8.4: pg_restore: did not find magic string in file header\n
Date: 2010-11-19 16:29:38
Message-ID: 1265.1290184178@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2010-11-19 16:56:05 Re: Forums at postgresql.com.au
Previous Message Adrian Klaver 2010-11-19 16:21:59 Re: Upgrading 8.2 to 8.4: pg_restore: did not find magic string in file header\n