Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSqCe-0004y6-F7 for pgsql-admin@arkaria.postgresql.org; Tue, 12 Jun 2018 20:47:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSqCc-0000cd-5b for pgsql-admin@arkaria.postgresql.org; Tue, 12 Jun 2018 20:47:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSqCa-0000cN-2z; Tue, 12 Jun 2018 20:47:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSqCW-0003CE-C6; Tue, 12 Jun 2018 20:47:38 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D1F5220E5F; Tue, 12 Jun 2018 16:47:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 12 Jun 2018 16:47:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=2kXXJseAy4ZS8otOTJ+HCHWqbGucy PiKjEEhGCoUlo4=; b=d2SzXquafe7EDs+GtGwZzu8LzIWUE3h5jM5LncZZIaHoO 47M4Br/P0hjN6VHcQyBpji9sHlK6vdtWemQc5v2Tjkm2Tjc7l0786Ne0byXx1MpI Br5zF+tzdI3jVclsokAoa2vDL5PmU0M8cTjLCbkwoBP9oo8uCMaxeyrKX0r+T9H5 4zYNA8ta05RtDGhCoYop6xQjLpz+t6eddcNIy4QvMLciXEqQjcYLGZaa+9pFoNLm /LqSLCghRc0eolQFkmWVXvosXowUq8sE8Fjh3M54KYqjmfIlvs3uj1ePmQ9OCOKJ FA47KNk/I94mbA9WqkY1shvJzE3ke31/BqyS3TO3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2kXXJs eAy4ZS8otOTJ+HCHWqbGucyPiKjEEhGCoUlo4=; b=vIO5e8JCeGHs14g58wODFK OWkRLO1Vbqg54SlPrxGioTYlJJXtOUnVQCDJwfC1uwOsKnAb7QMe8VDmWLUQ19Hf Nm8Ep5M+qePqrXCt2QB77lleUQQUhYrvT7EdyJ3wLDxuzaVTrD8/yZJav65qvca9 aFDe/tD3v39iL4Qu1bUalofM5UIpte6/oqBrh6LkX/15ktYGyCXbPAgKom1XOXL7 IBUvYb1TO8tR+S/Yr8XCgPawESvM5454qR6iu7jyQCEIGFOOS4hcR9pBLQsRAYRB E61xQ62NChzPdCh3q2NxigxydDr+M+/idHWCq3stl3Z6joZs1Fl3Hzv8hKP+hnTw == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id CA3FDE4B67; Tue, 12 Jun 2018 16:47:31 -0400 (EDT) Subject: Re: pg_upgrade 10.2 To: Murthy Nunna , "pgsql-general@lists.postgresql.org" , "pgsql-admin@lists.postgresql.org" , "pgsql-performance@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <1a3ebd40-7870-3eab-97d4-ca2b9907d917@aklaver.com> Date: Tue, 12 Jun 2018 13:47:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/12/2018 01:34 PM, Murthy Nunna wrote: > In older versions of pg_upgrade (e.g from 9.2 to 9.3), I was able to run > pg_upgrade without stopping old cluster using the check flag. > > pg_upgrade -b -B -d -D -p 5432 > -P 5434 -r -v -k -c > > Note the “c” flag at the end I take the below to it mean it should work: https://www.postgresql.org/docs/10/static/pgupgrade.html > "You can use pg_upgrade --check to perform only the checks, even if the old server is still running. pg_upgrade --check will also outline any manual adjustments you will need to make after the upgrade. If you are going to be using link mode, you should use the --link option with --check to enable link-mode-specific checks." Might want to try without -k to see what happens. More comments below. > However pg_upgrade in 10 (I tried from 9.3 to 10.4), when I did not stop > the old cluster, the upgrade failed: > > *** > > There seems to be a postmaster servicing the old cluster. > > Please shutdown that postmaster and try again. > > Failure, exiting > > Is this expected? > > Also, when I stopped the old cluster and ran pg_upgrade with “-c” flag, > the file global/pg_control got renamed to global/pg_control.old. The > “-c” flag never renamed anything in the old cluster in older pg_upgrade Again seems related to -k: " If you ran pg_upgrade without --link or did not start the new server, the old cluster was not modified except that, if linking started, a .old suffix was appended to $PGDATA/global/pg_control. To reuse the old cluster, possibly remove the .old suffix from $PGDATA/global/pg_control; you can then restart the old cluster. " > -- Adrian Klaver adrian.klaver@aklaver.com