Re: RHEL certified repo provided PostgreSQL Major Version Upgrade.

From: Sameer Malve <malvesameer(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>, Sameer Malve <sameer(dot)malve(at)mobileum(dot)com>
Subject: Re: RHEL certified repo provided PostgreSQL Major Version Upgrade.
Date: 2024-10-10 06:22:47
Message-ID: CAEGp0dg7cm0E3AUNhOnEGNM2TYr3KDg8iqRMpRWu16zVmaTqpQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Tom,

Thanks for providing me with the correct point to look for a solution, and
I was able to upgrade my cluster from PG15.6 to PG 16.4.

I have few questions.

1. As I have observed, the PostgreSQL upgrade package has only the lower
major version binaries. So what if I want to upgrade from PG 13 to PG 16?
2. If upgrade fails then what are the rollback steps. Do you know if it is
documented somewhere?

Regards,
Sameer Malve

On Tue, Oct 8, 2024 at 7:32 PM Sameer Malve <Sameer(dot)Malve(at)mobileum(dot)com>
wrote:

> Thanks Tom. I have installed that upgrade package rpm will go through it
> and try. And would let you know incase I get stucked .
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
> ------------------------------
> *From:* Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> *Sent:* Tuesday, October 8, 2024 7:15:49 PM
> *To:* Sameer Malve <malvesameer(at)gmail(dot)com>
> *Cc:* pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>;
> Sameer Malve <Sameer(dot)Malve(at)mobileum(dot)com>
> *Subject:* Re: RHEL certified repo provided PostgreSQL Major Version
> Upgrade.
>
> Caution :External
>
> Sameer Malve <malvesameer(at)gmail(dot)com> 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
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-10-10 06:33:25 Re: RHEL certified repo provided PostgreSQL Major Version Upgrade.
Previous Message Holger Jakobs 2024-10-08 14:20:10 Re: RHEL certified repo provided PostgreSQL Major Version Upgrade.