Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6C8B863336F for ; Mon, 29 Mar 2010 07:25:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 17739-02 for ; Mon, 29 Mar 2010 10:25:03 +0000 (UTC) X-Greylist: delayed 00:06:01.338486 by SQLgrey-1.7.6 Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mail.postgresql.org (Postfix) with ESMTP id CF98D633349 for ; Mon, 29 Mar 2010 07:25:03 -0300 (ADT) Received: from vromage.erje.net (erje.net [80.126.62.176]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id o2TAJ0Om003647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 29 Mar 2010 12:19:01 +0200 (CEST) (envelope-from robert@ml.erje.net) Received: from ismet.erje.net (ismet.erje.net [IPv6:2001:888:1f33::8e45:5e]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vromage.erje.net (PostFix 2.7.0) with ESMTPS id 8A6AAE97F89 for ; Mon, 29 Mar 2010 12:18:59 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.3 vromage.erje.net 8A6AAE97F89 Date: Mon, 29 Mar 2010 12:18:58 +0200 From: Robert Joosten To: pgsql-admin@postgresql.org Subject: Re: Migration of PGDATA Message-ID: <20100329101857.GC1188@ismet.erje.net> References: <20100329093134.62810@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100329093134.62810@gmx.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201003/222 X-Sequence-Number: 34021 Hi, > is it safe to move the PGDATA directory from one system to another when migrating from one operating system to another? > For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5? > The database is of course shutdown properly, and the PG major versions match. > Or is a dump/restore necessary in these cases? Besides the other reply, take into account little- versus bigendian changes if you switch hardware. But just out of curiosity: why propose against a dump/restore ? I mean: when I upgrade between major releases I dump as well, as it is recommended. I never ran into trouble, you know. Regards, Robert