public inbox for [email protected]  
help / color / mirror / Atom feed
From: Zaid Shabbir <[email protected]>
To: [email protected]
Subject: Remove Cluster forcefully during the check_upgrade failure
Date: Thu, 30 May 2024 23:10:28 +0500
Message-ID: <CABCJe_V=rzBv4koouirYuNqC=0fuBz=jhf0Wns63uJj895VvOg@mail.gmail.com> (raw)

Hello,

I have installed PostgreSQL 15 and PostgreSQL 14 side by side and want to
upgrade from 14 to 15. For upgrading purposes, I am using {postgresql-15-setup
check_upgrade}. However, in my case, the installed 14 version is not
compatible with the latest 15.7.

After the installation and cluster initialization of PostgreSQL 14 and 15,
when I run the following command {postgresql-15-setup check_upgrade}, it
returns the following message:
"Performing upgrade check: Upgrade failed. Removing the new cluster. Please
re-initdb the new cluster. failed "


After the failure the postgresql15 cluster removed forcefully due to the
following code written in postgresql-15-setup script file

{
if [ $script_result -eq 0 ]; then
        echo $"OK"
    else
        # Clean up after failure
        echo "Upgrade failed. Removing the new cluster. Please re-initdb
the new cluster."

*        rm -rf "$PGDATA"*        echo $"failed"
fi
}

My concern here is whether forcefully deleting the user cluster without
obtaining permission from the user is the right approach.



Regards,
Zaid Shabbir
AGEDB


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Remove Cluster forcefully during the check_upgrade failure
  In-Reply-To: <CABCJe_V=rzBv4koouirYuNqC=0fuBz=jhf0Wns63uJj895VvOg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox