Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx7pu-00Gdl8-1L for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 18:17:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx7ot-002C8K-1u for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 18:16:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx7ot-002C8B-0g for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 18:16:39 +0000 Received: from rs.plausibolo.de ([85.214.83.89] helo=plausibolo.de) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vx7or-000000003Ud-1ezy for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 18:16:39 +0000 Received: from localhost (localhost [127.0.0.1]) by rs.plausibolo.de (Postfix) with ESMTP id A9CA3380C0F; Mon, 2 Mar 2026 19:16:36 +0100 (CET) Received: from plausibolo.de ([127.0.0.1]) by localhost (h2367442.stratoserver.net [127.0.0.1]) (amavis, port 10024) with ESMTP id cBWKL5jWTDoo; Mon, 2 Mar 2026 19:16:36 +0100 (CET) Received: from [192.168.178.88] (xdsl-89-0-40-144.nc.de [89.0.40.144]) by rs.plausibolo.de (Postfix) with ESMTPSA id 3A7D8380229; Mon, 2 Mar 2026 19:16:36 +0100 (CET) Content-Type: multipart/alternative; boundary="------------Em59UZY6PXXAv5cP3SJAE6yB" Message-ID: <6e1df2c9-c9be-4d03-a349-ac4edadc85c3@jakobs.com> Date: Mon, 2 Mar 2026 19:16:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: upgrade from 13 to 16 To: pgsql-admin@lists.postgresql.org References: <7e69fa35-05c7-4cd9-9eba-90fd78b7cd18@localities.work> <0bdbf1e5-e8ab-408d-8e0e-f4e3df6a3c1d@localities.work> <58477698-42df-4e66-aa6b-f86c794919d5@localities.work> Content-Language: en-GB, de-DE From: Holger Jakobs Autocrypt: addr=holger@jakobs.com; keydata= xsDiBEG8IA8RBAC6WqUzEPTjest7MvFca5WlI47EgtKzOy1D1X9gSEmPj0sQrilNGEitY/+Q kPnCvI3odz1XXf/MZQtXwlxJA4lPmx8/K7MqBj9vh0J5jRznpE7l+SBDmmDobIqBAgl6BZvH 1C7e2y72h5T1/plrXonLUGzthqBtsvWl0ogoyTJqiwCg6AOhYX+Xbcl8/AXy4F4qbUq4LXsD /j6yCKRkyleN688y9YpuS5J6/ZZ/OBCM74pa2iNge3GmXn1JeUowF693QFCGHkpswmDIoGhL 5iM6GHj9HFB6rTXW5H3sR1y6ta7vXwoNBGkgiM89B1a/KsLT5L6MZgZ5AV0tj6vxwAsuLixS SDiNVNAd8vp2FfqdLlOgThsgVIwKBACsCzZa1VxpdoNSYnkTOSZhEjZkbWApdneQ2bTxXJgW +fWgVeLiojCp6I1AmQqzwHz8UN1nrsQjH8Rnxt2J/C5H/Ek9jlOFakFQXlPMZw3tNeTA1P3B 3zPyq6hKFPZHFklUquE3gHVjnX9qxSW0xvFirf6xAMCMYWRnCQHRgiXoAc0hSG9sZ2VyIEph a29icyA8aG9sZ2VyQGpha29icy5jb20+wnsEExECADsCGwMGCwkIBwMCAxUCAwMWAgECHgEC F4AWIQScuJCxWJK1p5BOebGKV5yTsxlhugUCaVdWsQUJMQE4HAAKCRCKV5yTsxlhureAAJ96 hJrXLiFGQJknuPn8vYEFTvQe4gCgjfc8YoZBMiEgbgibbp+9Ho93YZLOwE0EQbwgEBAEAKIa ShfwcoKhx0LBF0zNz2yIOzXDRg1rKFM+cr0iLfDPNLZH01LJaw9BXLHqGRV9KYroITlHN+4N TOtgSDJpX/a9PckP0aSj5G4WeN5C9WjyFzX1uYFKf3kBOSL6EXL/rwyqkyWwbtjIKW5FKleH arGWFuHYXNMhCaIRABHiQUITAAMFA/9nVjqfChfD/kmYsksVy9lmUV+fiD1OPIxLAfnT8Beo 4ClxzL0lLOhMVjzsi2YaSEPSqPXw8kFK3a6oBIauTb/nlcrn3pFaeh7Iv2bOPmvrCgOo81Fc hsrzl+gZUgxGtv8S5+BI4/kfpUfJu8E8PgKmkTDhDR9GwwJo5y+JuSMeisJmBBgRAgAmAhsM FiEEnLiQsViStaeQTnmxileck7MZYboFAmlXVsYFCTEBODYACgkQileck7MZYbomuQCgj9xe vI2QAGxQS+u27l+7zpHvUAEAoNL+6+cWX1zG3GfEk5j0nAmwPtyi In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------Em59UZY6PXXAv5cP3SJAE6yB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 02.03.26 um 15:31 schrieb Ron Johnson: > On Mon, Mar 2, 2026 at 9:09 AM listy wrote: > > Cannot say about Debian but RHEL family (perhaps exceptions exist) > do not, certainly not on Centos, Ubuntu which I use, yes. > But also rhel/centos do not do major PGsql rel. upgrade within the > same/one OS release, I do not think so. > What happened to me - what I did rather - was upgrade from c9 to > c10. (not officially supported.) > > > This is why I strongly urge you to use the PGDG repositories, not the > packages which RHEL builds. > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! Yes, RHEL doesn't take into account that PostgreSQL will ever be upgraded to another major version. They support the version which was current when they had their feature freeze for the lifetime of the system. Therefore Ron is perfectly correct in writing that everybody should use the PGDG from the beginning. You might have success installing the new version from PGDG repos and then run pg_upgrade (with all 4 mentioned options) from the new version. The preconditions for pg_upgrade are: * you have the old and the new software version installed (pg-13 and pg-18) in different directories * you have the old cluster unchanged and an empty new cluster in different directories Maybe it helps to move the data directory of the old cluster before installing the new software package. Make sure you also change the path in the systemd service unit of the old version. If the database isn't large, dump & restore will also work fine. Regards, Holger -- Holger Jakobs, Bergisch Gladbach, Germany --------------Em59UZY6PXXAv5cP3SJAE6yB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Am 02.03.26 um 15:31 schrieb Ron Johnson:
On Mon, Mar 2, 2026 at 9:09 AM listy <listy@localities.work> wrote:
Cannot say about Debian but RHEL family (perhaps exceptions exist) do not, certainly not on Centos, Ubuntu which I use, yes.
But also rhel/centos do not do major PGsql rel. upgrade within the same/one OS release, I do not think so.
What happened to me - what I did rather - was upgrade from c9 to c10. (not officially supported.)

This is why I strongly urge you to use the PGDG repositories, not the packages which RHEL builds.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

Yes, RHEL doesn't take into account that PostgreSQL will ever be upgraded to another major version. They support the version which was current when they had their feature freeze for the lifetime of the system.

Therefore Ron is perfectly correct in writing that everybody should use the PGDG from the beginning.

You might have success installing the new version from PGDG repos and then run pg_upgrade (with all 4 mentioned options) from the new version. The preconditions for pg_upgrade are:

  • you have the old and the new software version installed (pg-13 and pg-18) in different directories
  • you have the old cluster unchanged and an empty new cluster in different directories

Maybe it helps to move the data directory of the old cluster before installing the new software package. Make sure you also change the path in the systemd service unit of the old version.

If the database isn't large, dump & restore will also work fine.

Regards,

Holger

--

Holger Jakobs, Bergisch Gladbach, Germany

--------------Em59UZY6PXXAv5cP3SJAE6yB--