Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0DDFD633F0F for ; Mon, 29 Mar 2010 07:51:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 57288-01-3 for ; Mon, 29 Mar 2010 10:50:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id E8E0D633DF8 for ; Mon, 29 Mar 2010 07:49:58 -0300 (ADT) Received: (qmail 23707 invoked by uid 0); 29 Mar 2010 10:49:56 -0000 Received: from 193.194.157.126 by www152.gmx.net with HTTP; Mon, 29 Mar 2010 12:49:55 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 29 Mar 2010 12:49:55 +0200 From: =?iso-8859-1?Q?=22Martin_M=FCnstermann=22?= In-Reply-To: <20100329101857.GC1188@ismet.erje.net> Message-ID: <20100329104955.222110@gmx.net> MIME-Version: 1.0 References: <20100329093134.62810@gmx.net> <20100329101857.GC1188@ismet.erje.net> Subject: Re: Migration of PGDATA To: Robert Joosten , pgsql-admin@postgresql.org X-Authenticated: #740997 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18gJRVyDrogpQsUC4acYTbCIdn0cXz+kHXryEE8P+ c8Rij1QdRsUjPuAKY4Bi96uFx2mi+zoeIP7g== Content-Transfer-Encoding: 8bit X-GMX-UID: 67KFf7YRTiE+U/YvbGRwAPd9ZUVSRFdV X-FuHaFi: 0.67000000000000004 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201003/223 X-Sequence-Number: 34022 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. Good point. But as we stick to Linux on Intel, we expect no problems there. > 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. It's a question of migration duration aka downtime. Our PGDATA resides on a SAN, so moving/migrating the directory takes a couple of seconds. A dump/restore cycle would take much longer. Thanks, Martin -- GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail