From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Abhishek Bhola <abhishek.bhola@japannext.co.jp>
To: pgsql-general@postgresql.org
Subject: Re: [Major version upgrade] pg_upgrade fails despite passing check mode
Date: Fri, 22 Oct 2021 17:20:55 +0200
Message-ID: <13e858eeec8fc0e0e67090c5abc14530114d03a3.camel@cybertec.at> (raw)
In-Reply-To: <CAEDsCzjov3QvqXNLZmmT8SrfX0SnDsCgkC2vEFi3RWTn3Wc5sg@mail.gmail.com>
References: <CAEDsCzjov3QvqXNLZmmT8SrfX0SnDsCgkC2vEFi3RWTn3Wc5sg@mail.gmail.com>
On Fri, 2021-10-22 at 17:11 +0900, Abhishek Bhola wrote:
> postgres@dxxxpgs03:/Dxxxx1/datadg/data13$ /usr/pgsql-13/bin/pg_upgrade -k --check
> --new-datadir='/Dxxxx1/datadg/data13' --old-datadir='/Dxxxx1/datadg/data'
> --new-bindir='/usr/pgsql-13/bin' --old-bindir='/usr/pgsql-11/bin'
>
> *Clusters are compatible*
>
> But then while performing the actual upgrade, it failed saying the "owner of a FDW should be a super user"
>
> So I started the old Postgres 11 again, changed the owner of that FDW to a super user.
>
> Now when I try to run the upgrade (even in check mode) again, it says "new cluster tablespace directory already exists"
>
> Is it safe to delete the new tablespace directories?
Don't remove the tablespace directories, because they contain the original data from the
old cluster. But there should be directories called PG_13_202007201, and you have to
remove those.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, abhishek.bhola@japannext.co.jp
Subject: Re: [Major version upgrade] pg_upgrade fails despite passing check mode
In-Reply-To: <13e858eeec8fc0e0e67090c5abc14530114d03a3.camel@cybertec.at>
References: <CAEDsCzjov3QvqXNLZmmT8SrfX0SnDsCgkC2vEFi3RWTn3Wc5sg@mail.gmail.com> <13e858eeec8fc0e0e67090c5abc14530114d03a3.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox