Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B508C632F21 for ; Sat, 20 Feb 2010 18:42:58 -0400 (AST) 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 90135-05 for ; Sat, 20 Feb 2010 22:42:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mail.postgresql.org (Postfix) with ESMTP id 224D6632EAD for ; Sat, 20 Feb 2010 18:42:46 -0400 (AST) Received: by fxm23 with SMTP id 23so1264451fxm.3 for ; Sat, 20 Feb 2010 14:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=kLOvyyy/PQFJGrkLSnEjX/5RqxvEDJD/ZGTxD+v3qMk=; b=pEZsN1g6CilAWxxR6rOkcUvOYxkqz9+zSk4m7KF0WB24kP89Gs0+OfWvaN/ikl3m9n 6/Ln3nLHh+A9fTl+iQerkN/T2Do+Fw7tsnrg73rJbUPU/9GbkXqVuetI6oLVTycy9ItA cIk1ToExptBUEmwo9FacHXWpAS/Lvbp1Lhgz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=oNLDd9nCgChjle9V4W12dg2qsa1XCEHSAQ5+zeO4PGDiohDY5QwAeSqtqMYCBrwzmW ODqfq0B0M0+7AegnVQrRc3tIqoVit7JnzaVT0/vW+2wVjlSTylJaxYGQnQ7xDEHLTWOO RvSR/DgbmAm+Bfl/AN0SGeCdDA61sR2+KtjyM= Received: by 10.223.4.145 with SMTP id 17mr7545310far.17.1266705765510; Sat, 20 Feb 2010 14:42:45 -0800 (PST) Received: from ?192.168.1.121? (chello089077019226.chello.pl [89.77.19.226]) by mx.google.com with ESMTPS id 2sm2213295fks.42.2010.02.20.14.42.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Feb 2010 14:42:44 -0800 (PST) Message-ID: <4B806560.2000104@gmail.com> Date: Sat, 20 Feb 2010 23:42:40 +0100 From: Andrzej Zawadzki User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100215 Lightning/1.0b1 Icedove/3.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: upgrading, but learned about pg_dumpall too late References: <4B805376.80705@FastMail.fm> In-Reply-To: <4B805376.80705@FastMail.fm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.349 tagged_above=-10 required=5 tests=AWL=1.348, BAYES_50=0.001 X-Spam-Level: * X-Archive-Number: 201002/158 X-Sequence-Number: 33761 On 20.02.2010 22:26, Richard O. Hammer wrote: > Hello, > Hi! > I hope someone can tell me how to recover my database tables. I > recently upgraded to a new Linux server. First I saved a copy of my > /var/lib/pgsql/data/*, which was created with PG version 7.4. On the > new Linux server I have PG version 8.1.11. > > But now, trying use my old tables, I discover that I should have saved > the tables with the pg_dumpall command before I abandoned the > version-7.4 Postgres server. Unfortunately I did not know about > pg_dumpall. > > So now I'm wondering if there is a way I can read and update my > version-7.4 data directory with my version-8.1 postmaster. > > Here is one thing I've tried: > bash-3.2$ pg_ctl start -D /var/lib/pgsql/old/data > FATAL: database files are incompatible with server > DETAIL: The data directory was initialized by PostgreSQL version > 7.4, which is not compatible with this version 8.1.1 > > Any suggestions will be appreciated. > Downgrade to 7.4 Dump Upgrade Restore -- Andrzej Zawadzki