Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EE611133798E for ; Wed, 10 Nov 2010 02:37:27 -0400 (AST) 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 59032-10 for ; Wed, 10 Nov 2010 06:37:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id 4BA01133616B for ; Wed, 10 Nov 2010 02:37:20 -0400 (AST) Received: by wwb22 with SMTP id 22so340150wwb.19 for ; Tue, 09 Nov 2010 22:37:19 -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:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=pp55krshVHm+dXNDPiZhUtWXdlI4953/jhZvvu4vNl4=; b=MqLsuwl+FesOObhNCcJEIue6EE3Fd+ulYwKI2QT4OAOW0Y68KrWIKZmw60HCHfyxvq K4jhGQBwr4BAM9qn3SsHWUQm3wEM179vW6fmUaJckmWS/jLRua+NesiwUGgQJ3cUCsGH 6WjQXhppDw+NfwkC2NXE4Deli1iKzdSZsOeHQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=lx6Ce/gNwKNVcZjazsKxSi3+cNrnSK7LksUKgl37X1WJXYYtW7eJCi6lPhv1EOExae sdaxBZyPIglPmS/jJM1HmYCLH7D/QAtUvf0XDB1Iicgh1P2OA8n7OpgqnR9LbV2wBBKm ESgimDFgmlBIxdZApFoDCrjrvXJShyfTzeVxM= Received: by 10.216.56.65 with SMTP id l43mr601446wec.113.1289371037963; Tue, 09 Nov 2010 22:37:17 -0800 (PST) Received: from [139.19.50.97] (wks-15-010.ag5.mpi-sb.mpg.de [139.19.50.97]) by mx.google.com with ESMTPS id x28sm160395weq.16.2010.11.09.22.37.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 22:37:17 -0800 (PST) Message-ID: <4CDA3D9C.2060603@gmail.com> Date: Wed, 10 Nov 2010 07:37:16 +0100 From: Arturas Mazeika User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100622 Icedove/3.0.5 MIME-Version: 1.0 To: Tom Lane CC: Bruce Momjian , Dave Page , pgsql-bugs@postgresql.org Subject: Re: BUG #5735: pg_upgrade thinks that it did not start the old server References: <201011100423.oAA4NoU05045@momjian.us> <25095.1289363527@sss.pgh.pa.us> In-Reply-To: <25095.1289363527@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/53 X-Sequence-Number: 28633 On 11/10/2010 05:32 AM, Tom Lane wrote: > Bruce Momjian writes: > >>> On 10/30/2010 7:33 PM, Dave Page wrote: >>> >>>> upgrade from a 32bit 8.3 server to a 64 bit 9.0 server, which isn't >>>> going to work without a dump/restore. With pg_upgrade, the two builds >>>> need to be from the same platform, same word size, and have the same >>>> configuration for certain settings like integer_datetimes. >>>> >> Can anyone suggest a way pg_upgrade could detect an upgrade from a >> 32-bit to 64-bit cpu and throw an error? >> > Surely it does that already, as a result of comparing pg_control > contents. > The HTML manual might need an update or a small clarification too. Currently, it does not seem that the manual explicitly states that ``pg_upgrade is not applicable in upgrading 32bit systems to 64bit ones''. A good place to write such a sentence would be at the beginning of [1], at the intro of F.32. pg_upgrade. Maybe the documentation already implicitly states that in F.32.4. Limitations in Migrating from PostgreSQL 8.3 section of [1] by this description: ``For Windows users, note that due to different integer datetimes settings used by the one-click installer and the MSI installer, it is only possible to upgrade from version 8.3 of the one-click distribution to version 8.4 or later of the one-click distribution. It is not possible to upgrade from the MSI installer to the one-click installer.'' Unfortunately, I could not understand in full detail the above. Thanks, arturas [1] http://www.postgresql.org/docs/9.0/static/pgupgrade.html