Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4224D64FCF9 for ; Mon, 15 Sep 2008 17:01:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59849-10 for ; Mon, 15 Sep 2008 17:01:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by postgresql.org (Postfix) with ESMTP id 442C864FCEE for ; Mon, 15 Sep 2008 17:01:43 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so3016611rvf.43 for ; Mon, 15 Sep 2008 13:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bRaq5E0INGSTW6qc5SZ8EzTk/Dt4/VUbyYPZTntVgSM=; b=V3qlMZrF/SJJDbBs73GFQxKfIEUvDUFdBhTRIphqLFDlOxVXC9/VLvLL2Pln7Ssr3J 3Nl4a4FIA8A3aQ5J0RsXp4Oxcik7T0WrX6zuC9dcX1dbFVsLbQb0fy53xhrHulF3cStV KNIKc9xRSvAPLgdQt2XQvH7kEZgz2ovyPnoHI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gY0rwxzQIIao8PcDe9PM8I0akCc/r66C3RTtQRig5RwJJfLNlvw7ZkWR2d3XoqgO4D fEBMR4nM9UMgaBzE1CEbmqLAqBEhGk/JauFbUBFnmhwAN3qflg5dL+3NHJbxizHCF+L+ Q732VbgiB0LGl3yIRHgpV/QhpMj2f48zuWTFY= Received: by 10.140.125.1 with SMTP id x1mr5057108rvc.287.1221508901642; Mon, 15 Sep 2008 13:01:41 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Mon, 15 Sep 2008 13:01:41 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2008 14:01:41 -0600 From: "Scott Marlowe" To: "Eliot, Christopher" Subject: Re: Moving DB data disk to a different machine Cc: pgsql-admin@postgresql.org In-Reply-To: <5C27B2F8693FA3458E71B4A81551253F03A3C6E5@NSTAR-MAIL1.windows.nagrastar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5C27B2F8693FA3458E71B4A81551253F03A3C6E5@NSTAR-MAIL1.windows.nagrastar.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/146 X-Sequence-Number: 30239 On Mon, Sep 15, 2008 at 1:09 PM, Eliot, Christopher wrote: > I have a database that I use for testing. The contents are not particularly > critical; if I were to lose that data, it would be an annoyance but not a > disaster. Thus I do not back up the DB. > > My server machine (actually my windows workstation) became very ill, so the > IT folks gave me a new workstation, but installed the disk drive from the > old workstation in the new one as a secondary drive. > > After installing PostgreSQL 8.2 (what we had been using) on this new > workstation, I tried simply copying the 'Program Files\Postgresql\8.2\data' > directory over from the old disk to the new, but the result is that when I > try to bring up the PostgreSQL server, it takes a long time, and then goes > down. You need to empty out the postgresql data directory, then copy everything in from the other disk. What errors are you getting? It's possible you're not using a compatible version. The major version numbers need to match (i.e. 8.2.4 to 8.2.7 is fine, 8.1.13 to 8.2.7 is not) and they need to be compiled the same way. I.e. if you had integer timestamps in one you need it in the other.