Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSV1n-0003bm-Pk for pgsql-admin@arkaria.postgresql.org; Fri, 22 Dec 2017 21:38:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSV1n-0006Ph-Cd for pgsql-admin@arkaria.postgresql.org; Fri, 22 Dec 2017 21:38:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eSV1n-0006PX-2p for pgsql-admin@lists.postgresql.org; Fri, 22 Dec 2017 21:38:51 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eSV1i-00066i-VL for pgsql-admin@lists.postgresql.org; Fri, 22 Dec 2017 21:38:49 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 521E64CC78; Fri, 22 Dec 2017 22:38:41 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id KBl1TC7A5JG9; Fri, 22 Dec 2017 22:38:40 +0100 (CET) Message-ID: <1513978718.4332.1.camel@cybertec.at> Subject: Re: Database file compatibility between OS From: Laurenz Albe To: zhigang wang , pgsql-admin@lists.postgresql.org Date: Fri, 22 Dec 2017 22:38:38 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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