Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH8fS-0001OW-Ab for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 19:27:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pH8fQ-0007xL-PQ for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 19:27:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH8fP-0007xC-Uq for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 19:27:44 +0000 Received: from rs6162.luxsci.com ([162.142.76.255]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH8fJ-0005Ho-6e for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 19:27:43 +0000 Received: from pfortin.com (h163.145.185.173.dynamic.ip.windstream.net [173.185.145.163]) (authenticated bits=0) by rs6162.luxsci.com (8.15.2/8.14.9) with ESMTPSA id 30FJRWQR845142 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 15 Jan 2023 19:27:33 GMT Date: Sun, 15 Jan 2023 14:27:32 -0500 From: pf@pfortin.com To: pgsql-general@lists.postgresql.org Subject: pg_upgrade 13.6 to 15.1? Message-ID: <20230115142732.0ec38e2a.pfortin@pfortin.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Lux-Comment: Message 30FJRWQR845142 sent by user #22427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pfortin.com; h=date:from:to:subject:message-id:mime-version:content-type:content-transfer-encoding; s=dkim; bh=rPo6bPTf91uWYioxGPKhl9S5D7xVFCQtb+ofVL59g88=; b=v+GQjkwej2dzFmbbpHqAE2Gh6k20agUlBAagECP3A3hr7+VSpLSppw96CogcvSNaMJg9GndMi5cC7dcXoWFhudiZtMhAEkuYl4h+0g9I4wXYeEdaskD8uZKl3L8AfvCnLnSJwKNQmhnhgVCpVxBtG+icUEcCtpJoXUfr2kWKzCk= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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@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@pf ~]$ /usr/bin/pg_upgrade -V pg_upgrade (PostgreSQL) 15.1 [postgres@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