Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIsnh-00HFZq-Mf for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2024 17:04:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tIsnf-001QoR-8Y for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2024 17:04:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIsne-001Qny-C0 for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2024 17:04:32 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIsnc-0012Ug-LL for pgsql-general@postgresql.org; Wed, 04 Dec 2024 17:04:30 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id B44142540178; Wed, 4 Dec 2024 12:04:27 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Wed, 04 Dec 2024 12:04:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733331867; x=1733418267; bh=McTRsUBg2d9xSg3ykcVOjTmzSl90+0ovT7dEBthdt18=; b= eOk6bXJiC3wMEuO+OFFiy+5pa+ea7o1mlvQs+aeSI1RjNune3L7Se+4sSDKZnt2r m5FLH068GaVzbspvwnlU7Hy5dkxLBf47cuZHMlt9/gbXUOLQTKm1A8FBOSNHudZd oUjoZbpxXOHYt1T/ky+ZUoOVwblbNeYsj/I3xFJT6DRos6deDOefxdZwVGkNJ6+y bZHueXPPm4JLC/8eRiC5OdSe1qU5Vt0GjOJn/kWVCQsO82lY24Pn01rABfmOT/um s1ESvajmO+VaAmkMmexHrFwbk8Ru/cxVELZRQ8NpEjdrqmdbjs/He4UWs2X5rlLe 3JP16hsZapw1Wl8jYIjkwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733331867; x=1733418267; bh=M cTRsUBg2d9xSg3ykcVOjTmzSl90+0ovT7dEBthdt18=; b=ARO0+KGsvatNXnir8 qCBwsYs0+AZYLCMHS1XM/DjlCgMboNz88HydW9wMJjT6Q7L9OkVdJS9qK6xIDWVD WcySCYC26SlFXSpQmud5HvVmNUYjbscy0YA/etX1Bx7M/nTFwP4gZW0ncDry9NCv V1FOG88FhaXhPIoD9t7yZ+w8IMKI0Y3h1S3j51autT6sVSz9879h8o1tSjhYMMbt UA1VsjVJI4ah5k/0ZBibh9knmGiTzkUduk9aYFNQ1YZsEgDDc4JKWs/fGb6QVdCf br4Q6YcdyvUwDltl8KLJGccRAkjbHXrMXp5tUCCl33R6uOeA/oyB766hChfagXLO tLzfQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieehgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecu hfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrg hklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffelgeeifefgveduhedthfek uedtffejveegffegjeevtdehgfduieetfeehjeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohepvghsthgvvghmsghsvhdqfhhorhhumheshigrhhhoohdrtghomhdprhgtphht thhopehrohhnlhhjohhhnhhsohhnjhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepph hgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Dec 2024 12:04:26 -0500 (EST) Message-ID: Date: Wed, 4 Dec 2024 09:04:26 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X To: Bharani SV-forum , Ron Johnson , pgsql-general References: <0558ddd4d71641bdb41fa49b2425f73c@safrangroup.com> <98965993.3138805.1731699978332@mail.yahoo.com> <564950518.5117550.1733177884387@mail.yahoo.com> <07ab2d83-ffe5-4bec-9626-22a68f732579@aklaver.com> <273a88dc-4134-47d5-bc19-30ff5f97926c@aklaver.com> <498dfb34-4dd7-4f48-8188-355e1488d7e6@aklaver.com> <1061066336.5835157.1733316137292@mail.yahoo.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <1061066336.5835157.1733316137292@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/4/24 04:42, Bharani SV-forum wrote: > Team /Ron/Adrian > > Wann to reconfirm > we have an setup with > > new server will be with > > will be following the following suggestion > > *On old VM* [ existing server with OS "Amazon Linux release 2 (Karoo) " > present in aws "us-east-1 region" and along with postgresql ver 13.16.2 > - community edn ] > >  - "take offline full backup (PG_DATA folder alone)  using OS command" > > *On new VM [OS "Amazon Linux 2023 " in aws region=us-east-1 and intended > db as "postgresql 15.10 - community edn" ] * > >  - "Restore offline full backup (PG_DATA folder alone) using OS command" > - create postgres unix userid > - install postgresql ver 15.10 binaries > - setup respective env variable to point correctly for PG_DATA > - will follow "pg_upgrade" That will not work as you would need an install of Postgres 13 on the new machine as well. And then there is the issue that the OS version changed as well. That would cause issues. Follow the process Greg Sabino Mullane posted. > > > my question is > a) is the above said steps is correct with the given existing and > proposed setup > b) is their any known issues using "cross over using pg_upgrade " option > between the server's having below said operating system > *- source = existing server with OS = *Amazon Linux release 2 (Karoo) " > present in aws "us-east-1 region" and along with postgresql ver 13.16.2 > - community edn > vs > target - different server *OS "Amazon Linux 2023 " in aws > region=us-east-1 and intended db as "postgresql 15.10 - community edn"* > * > * > * > * > On Tuesday, December 3, 2024 at 12:28:58 AM EST, Adrian Klaver > wrote: > > > On 12/2/24 17:23, Ron Johnson wrote: > > Adrian, > > > > OP is moving to a new VM when migrating to PG 15.  When was the > > "cross-server" feature added to pg_upgrade? > > > > Moving to a new VM was not the issue, my mistake was thinking the OS > version was staying the same. > > Then: > > On old VM: > > "take offline full backup (PG_DATA folder alone)  using OS command" > > On new VM: > "Restore offline full backup (PG_DATA folder alone) using OS command" > > Followed by installing new Postgres version could be dealt with using > pg_upgrade. Once I was corrected on what was actually going on then > doing a dump/restore or logical replication became better choices. > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > -- Adrian Klaver adrian.klaver@aklaver.com