Re: migrating data from an old postgres version

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Willy-Bas Loos <willybas(at)gmail(dot)com>, Melvin Davidson <melvin6925(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: migrating data from an old postgres version
Date: 2016-07-15 14:19:32
Message-ID: 4e611e41-06ae-d3ec-b402-5c93f6282445@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/15/2016 07:07 AM, Willy-Bas Loos wrote:
>
> On Fri, Jul 15, 2016 at 3:55 PM, Melvin Davidson <melvin6925(at)gmail(dot)com
> <mailto:melvin6925(at)gmail(dot)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.

pg_dump is backwards compatible to version 7.0.

> 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

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Melvin Davidson 2016-07-15 14:22:15 Re: migrating data from an old postgres version
Previous Message Willy-Bas Loos 2016-07-15 14:18:58 Re: migrating data from an old postgres version