Re: pg_upgrade

From: Jan Lentfer <Jan(dot)Lentfer(at)web(dot)de>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_upgrade
Date: 2015-06-22 10:36:07
Message-ID: e84cbc3cee08d8569cd670860c2b1900@imap.lan.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Am 2015-06-22 11:14, schrieb Rainer Leo:
> pg_upgrade Hello,
>
> we are still using PostgreSQL 9.0.2 on Windows Server.
>
> Now we are migrating to Windows Server 2012 R2 and we
> would like to migrate PostgreSQL at the same time to
> the current version 9.4.4-1
>
> Which is the best way to migrate the data?
>
> 1. pg_dump on the old server
> 2. pg_retore on the new server
> 3. pg_upgrade on the new server
>
> Is this correct or is there a "best procedure" to do this?

You do either 1 + 2 OR 3. pg_upgrade is binary upgrade, where as
pg_dump + pg_restore is "logical" (dump data and schemal to SQL
instructions). If you go that way also check pg_dumpall for dumping the
globals.

Regards

Jan

In response to

  • pg_upgrade at 2015-06-22 09:14:38 from Rainer Leo

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ziggy Skalski 2015-06-22 10:44:09 Re: pg_upgrade
Previous Message apogoreliy 2015-06-22 09:44:13 Re: backup software for postgresql