pg_upgrade 13.6 to 15.1?

From: pf(at)pfortin(dot)com
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: pg_upgrade 13.6 to 15.1?
Date: 2023-01-15 19:27:32
Message-ID: 20230115142732.0ec38e2a.pfortin@pfortin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm fairly new to postgres; but have databases with about 2TB of data.

Trying to upgrade from 13.6 to 15.1, pg_upgrade complains with:
[postgres(at)pf ~]$ /usr/bin/pg_upgrade -b /usr/local/pgsql/bin -B /usr/bin \
-d /mnt/db/var/lib/pgsql/data -D /mnt/work/var/lib/pgsql/data \
-s /tmp -U postgres
Performing Consistency Checks
-----------------------------
Checking cluster versions
This utility can only upgrade to PostgreSQL version 15. <=====<<< ??
Failure, exiting
[postgres(at)pf ~]$ /usr/bin/pg_upgrade -V
pg_upgrade (PostgreSQL) 15.1
[postgres(at)pf ~]$ /usr/local/pgsql/bin/pg_upgrade -V
pg_upgrade (PostgreSQL) 13.6

This is on Mageia Linux (mga9/cauldron) where the package manager prevents
the installation of both PG13 and PG15; so I have PG15 officially
installed and PG13 manually installed in /usr/local.

Due to the database size, I have the working copy on a 4TB NVMe SSD
mounted at /mnt/work/var/lib/{pgadmin,pgsql} and an identical copy on an
18TB platter at /mnt/db/var/lib/{pgadmin,pgsql}. Both copies are
currently at 13.6.

Rather than mess with the config locations; I use symlinks to point to
the database which are currently:
/var/lib/pgadmin -> /mnt/work/var/lib/pgadmin/
/var/lib/pgsql -> /mnt/work/var/lib/pgsql/

Nothing I read implies the need to upgrade to 14.x first... Right?

Thanks
Pierre

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2023-01-15 19:36:44 Re: Are ZFS snapshots unsafe when PGSQL is spreading through multiple zpools?
Previous Message HECTOR INGERTO 2023-01-15 15:47:45 Are ZFS snapshots unsafe when PGSQL is spreading through multiple zpools?