Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group