Database file compatibility between OS

From: zhigang wang <zhigang(dot)wang(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Database file compatibility between OS
Date: 2017-12-22 21:35:14
Message-ID: CAOvNZZryC-1L2hGqtaZ5pB_G8s1Sshw04w5bbG3xemjb6WUtVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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?
Thanks,
Zhigang

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2017-12-22 21:38:38 Re: Database file compatibility between OS
Previous Message Damir Colak 2017-12-21 17:16:28 Process watcher not showing on Mac pgAdmin version 2.0