Re: how do I import pqsl 7.1 database into 8.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Shen <x(dot)shen(at)orcon(dot)net(dot)nz>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: how do I import pqsl 7.1 database into 8.0
Date: 2005-12-16 00:08:21
Message-ID: 18442.1134691701@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Mike Shen <x(dot)shen(at)orcon(dot)net(dot)nz> writes:
> on the old box, we did pg_dump drbooks > drbooks.out
> on the new one, createdb drbooks
> then pg_restore -d drbooks -Fc drbooks.out
> we got error "did not find magic string in the file header"

pg_dump would have produced a plain-text dump, which you should feed to
psql not pg_restore.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2005-12-16 07:29:42 Re: sockets and refused connections
Previous Message Mike Shen 2005-12-15 23:04:30 how do I import pqsl 7.1 database into 8.0