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
pgsql-novice by date
|Next:||From: Tom Lane||Date: 2005-12-16 07:29:42|
|Subject: Re: sockets and refused connections |
|Previous:||From: Mike Shen||Date: 2005-12-15 23:04:30|
|Subject: how do I import pqsl 7.1 database into 8.0|