Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 04CF11337C1E for ; Wed, 13 Oct 2010 14:38:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 21376-05; Wed, 13 Oct 2010 17:36:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E45081337C6D; Wed, 13 Oct 2010 14:05:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9DH50ku028874; Wed, 13 Oct 2010 13:05:00 -0400 (EDT) To: Jaime Casanova cc: EDH , pgsql-admin@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Copying data files to new hardware? In-reply-to: References: <7dc101b1-6596-4850-b0ce-cb3f01f51f14@n40g2000vbb.googlegroups.com> Comments: In-reply-to Jaime Casanova message dated "Wed, 13 Oct 2010 11:41:55 -0500" Date: Wed, 13 Oct 2010 13:05:00 -0400 Message-ID: <28873.1286989500@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/111 X-Sequence-Number: 35852 Jaime Casanova writes: > On Wed, Oct 13, 2010 at 11:03 AM, EDH wrote: >> What I'd like to know is: if I install the latest 8.2.x release - I >> see 8.2.18 RPMs are available - can I do a straight copy of the >> contents of /var/lib/pgsql/data/ to the new server and start it up? >> Or is dump & restore the only real way to do this? > it's safe to just install any version of 8.2.x, copy the whole data > directory (plus any tablespace's directories you could have) and start > again... Not just "any" version --- it has to be the same build options. (integer-datetimes is definitely a critical option, and I forget what else.) But if you're using an RPM from the same RPM supplier as before, they probably got this right. regards, tom lane