Re: migrating data from an old postgres version - Mailing list pgsql-general

From Willy-Bas Loos
Subject Re: migrating data from an old postgres version
Date
Msg-id CAHnozTj=4-YF8g3LJFcS4PBkXsJu=idruaM8BRbsiF7FsAs9Jg@mail.gmail.com
Whole thread Raw
In response to Re: migrating data from an old postgres version  (Melvin Davidson <melvin6925@gmail.com>)
Responses Re: migrating data from an old postgres version
Re: migrating data from an old postgres version
List pgsql-general

On Fri, Jul 15, 2016 at 3:55 PM, Melvin Davidson <melvin6925@gmail.com> wrote:

Why can't he just do a
pg_dump -F p his_dbname > his_dbname.sql
Then copy dbname.sql to a jump/thumb drive on the old laptop
copy the data from the jump/thumb drive to the new laptop
create the new db in 9.5
and use pg_restore to load the his_dbname.sql ?

Because it's not the same version, so that will cause some errors.
But i guess we should be able to live with that.
Thanks, i guess i was thinking a bit too rigid.

Cheers,
--
Willy-Bas Loos

pgsql-general by date:

Previous
From: Paul Ramsey
Date:
Subject: Re: migrating data from an old postgres version
Next
From: "David G. Johnston"
Date:
Subject: Re: migrating data from an old postgres version