Re: Database file compatibility between OS

From: Scott Whitney <scott(at)journyx(dot)com>
To: zhigang wang <zhigang(dot)wang(at)gmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: Database file compatibility between OS
Date: 2017-12-22 21:40:32
Message-ID: CY4PR11MB157569DC5DF14ADE968A26E6A7020@CY4PR11MB1575.namprd11.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ubuntu 16.04 will be 64 bit, yes? I would be surprised if that works.
________________________________
From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Sent: Friday, December 22, 2017 3:38:38 PM
To: zhigang wang; pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Database file compatibility between OS

zhigang wang wrote:
> My instance of PostgreSQL 10.1 is running on Solaris 10 x86. I am going to change the OS to Ubuntu 16.04. Here is my plan for the database server:
> - Shutdown the server
> - Copy the local db folder /data/db/pgsql to a storage server.
> - Install Ubuntu and PostgreSQL 10.1
> - Copy /data/db/pgsql from storage server back to local.
> - Start the server.
> Will this work? Or I have to pg_dump then pg_restore to recreate the database instance?

No; you'll have to dump and restore to migrate to a different architecture.

Yours,
Laurenz Albe

Journyx, Inc.
7600 Burnet Road #300
Austin, TX 78757
www.journyx.com

p 512.834.8888
f 512-834-8858

Do you receive our promotional emails? Click here <http://journyx.com/communication-preferences> or visit http://journyx.com/communication-preferences to unsubscribe.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rob Hills 2017-12-23 09:36:45 pg_upgradecluster 9.5 -> 9.6 fails "Error: could not get cluster locales" on Ubuntu 17.04
Previous Message Laurenz Albe 2017-12-22 21:38:38 Re: Database file compatibility between OS