Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 35CDE6327C4 for ; Sun, 21 Feb 2010 15:20:19 -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 12844-08 for ; Sun, 21 Feb 2010 19:20:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mail.postgresql.org (Postfix) with ESMTP id 64311632659 for ; Sun, 21 Feb 2010 15:20:08 -0400 (AST) Received: by fxm1 with SMTP id 1so1915240fxm.35 for ; Sun, 21 Feb 2010 11:20:07 -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=wX8DDbOpQLNI3BHSLMUR9YCiyI/CKZHVKj8ZY9TRaUQ=; b=LjaNv4N6yttF+7qMtXBtPo/ekkZo/tTMr2q+olw+YoE3XTtd6mMFN7YTA654IzVOog TXm1BU8F619k77QbmlLktOCG2UdOLLJvkWE1rQWdR1pdYijz0ao3X1b1a/bORZdFxdR5 HEWZ+2mRGy/dpgkFwwiKcepeqvOfQ/8tvuMo0= 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=FBkpHBDSGz1ye1DluhcHVRC2Bj++2j3AD3MMpjQ6aS/+28OF/6WRqW4zP6bykjn2bP 8zp2itmweDEpPMDmqALYCX0xVq7ybwZJQFaY0FuulQCp1fZi1KCg/BKIkqCXtr8skOB/ ZWAGjdxA/t/5d/92Sh+VjQ2K4X2CbVnqdhESY= Received: by 10.223.75.156 with SMTP id y28mr852403faj.30.1266780007063; Sun, 21 Feb 2010 11:20:07 -0800 (PST) Received: from ?192.168.1.121? (chello089077019226.chello.pl [89.77.19.226]) by mx.google.com with ESMTPS id 16sm1066335fxm.15.2010.02.21.11.20.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Feb 2010 11:20:05 -0800 (PST) Message-ID: <4B818763.6030502@gmail.com> Date: Sun, 21 Feb 2010 20:20:03 +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> <4B806560.2000104@gmail.com> <407d949e1002201522o4fbafa3r2503017f1529f86a@mail.gmail.com> In-Reply-To: <407d949e1002201522o4fbafa3r2503017f1529f86a@mail.gmail.com> 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=0.675 tagged_above=-10 required=5 tests=AWL=0.674, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/167 X-Sequence-Number: 33770 On 21.02.2010 00:22, Greg Stark wrote: > On Sat, Feb 20, 2010 at 10:42 PM, Andrzej Zawadzki wrote: > >> Downgrade to 7.4 >> Dump >> Upgrade >> Restore >> >> > Actually that's not the best way. > > True bat not easier for beginner ;-) > The best way is to install 7.4 and 8.1.19 (not 8.1.11 which has known > bugs) at the same time. > > Use the pg_dump *from* *8.1.19* to connect to the 7.4 server and dump > the database. > Then shut down 7.4 and start up 8.1.19 and use pg_restore to restore > the database. > BTW. Isn't better make static (?) (stand alone) build of pg_dump(all)? Postgresql engine could be 7.1 and pg_dump will in 8.1 version. Much easier to upgrade on one machine. -- Andrzej Zawadzki