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 1syAXG-00Eqfd-Vk for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 13:45:58 +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 1syAXF-008ppk-KU for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 13:45:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syAXF-008ppc-9G for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 13:45:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syAXC-003Dx1-Tp for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 13:45:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 498DjnhR1910789; Tue, 8 Oct 2024 09:45:49 -0400 From: Tom Lane To: Sameer Malve cc: pgsql-admin@lists.postgresql.org, Sameer.Malve@mobileum.com Subject: Re: RHEL certified repo provided PostgreSQL Major Version Upgrade. In-reply-to: References: Comments: In-reply-to Sameer Malve message dated "Tue, 08 Oct 2024 13:54:11 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1910787.1728395149.1@sss.pgh.pa.us> Date: Tue, 08 Oct 2024 09:45:49 -0400 Message-ID: <1910788.1728395149@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sameer Malve writes: > We are trying to perform the Major version upgrade on RHEL 8 using > RHEL-certified repo `rhel-8-for-x86_64-appstream-rpms` from PG 15.6 to PG > 16.4 using `pg_upgrade` but we are facing the below issue. > As the binaries are getting upgraded in-place `/usr/bin` hence while > performing pg_upgrade we are not getting the older binaries. It's been more than ten years since I was responsible for Red Hat's packaging of PG, but I think I recall that the solution in place for pg_upgrade involved a separate postgresql-upgrade RPM containing previous-version executables, which you were supposed to install alongside the new version for long enough to perform the upgrade. Whatever the details were, I'm quite certain the package's README file contained an explanation of how to do it. Read that, do not pay attention to people or chatbots telling you how you'd do it with some other packaging. regards, tom lane