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.94.2) (envelope-from ) id 1skS1I-000DVA-JX for pgsql-general@arkaria.postgresql.org; Sat, 31 Aug 2024 17:36:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1skS0H-0012kT-C7 for pgsql-general@arkaria.postgresql.org; Sat, 31 Aug 2024 17:35:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1skS0F-0012kK-Pq for pgsql-general@lists.postgresql.org; Sat, 31 Aug 2024 17:35:13 +0000 Received: from fout4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1skS09-0000hc-5J for pgsql-general@postgresql.org; Sat, 31 Aug 2024 17:35:10 +0000 Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfout.nyi.internal (Postfix) with ESMTP id 79C891380171; Sat, 31 Aug 2024 13:35:03 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sat, 31 Aug 2024 13:35:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1725125703; x=1725212103; bh=UP2q8lfcG2zjeRDDHlFs9kQL8WPl1LmamfWaLEeqsZ8=; b= UGmYFLxC2LshvCXcP0BOwi4bj3q8wwrIrobzLadRsBswO9qntHyoD3oZStuYZKwW 0103y4IT1Id5hTzujCebcD5yZKbyoUAeSAxpQ0Kuw2fgI8ciLZ9pbWMrhU74fVJP 8fXBhaOsrJ7uVK2eD6PWIkkKZAYeb1B2vhbbcmsR26D9FGtnhLLF4MsbSbhT2lVQ H1vlq4k30qzS+1qoFxbX6aJNEz698J7mEjgu5b93miv/Ghnj9OTLuhy8dDKknBF8 pbc+SG09Pr6h/3d+72kyjCbG+iTKE/HqTLCSGOyy6gKxol9sNqaJfWp+O9cTb+9F bCKO0i/X6lbs2Axm9e9K7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725125703; x= 1725212103; bh=UP2q8lfcG2zjeRDDHlFs9kQL8WPl1LmamfWaLEeqsZ8=; b=u BNyNkPoKKI2VFMogGTtEVkqY93G/r/RsNhh89TPX9jmJepsI+DG3Pa0BEj8tn9NC HMnjdDhmgJR/eCB9cBdiZKG+wy/qrmX8UMqXEkVYSTdXIyCeOedcC+0IO2rB++iR w8gR4PfwHtDiCbzxzyURjD5zJco8VvmHIqbfyIRWKa04cRdyyD9XDI5jraim7Tpo fkXCHsYeW3UepIt/V1tMFh3yQsmoHo5M44ny+bDz/t8WjAZh7GgQnez6Ip2VYfZa eK1cxp9WQqtK2sm3kDEBZairsqrlOM2JQluXJd1/i8tMY8Z7QdO1VrsUeGysyxWg bZfsYuOftGsTsUpHyz3cQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudefkedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgg gfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgv rhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrg htthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdelkeehtdfgieff feekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhjhhpqdhpghhsqhhlsehhjh hprdgrthdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhq lhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Aug 2024 13:35:02 -0400 (EDT) Message-ID: Date: Sat, 31 Aug 2024 10:35:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Upgrade Ubuntu 22 -> 24 may break PostgreSQL To: "Peter J. Holzer" , pgsql-general@postgresql.org References: <20240831165445.7kqb4ezzghaysbc7@hjp.at> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20240831165445.7kqb4ezzghaysbc7@hjp.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/31/24 09:54, Peter J. Holzer wrote: > 'Tis the season again. > > Ubuntu 24.04.1 has just been released, so many Ubuntu LTS users will now > be prompted to upgrade from 22.04 to 24.04. Which I ignore. > > A word of warning to those who use Postgresql from the Ubuntu repo (not > PGDG): Why I do use the PGDG repo's. > > As usual, a newer Ubuntu version comes with a newer Postgres version (16 > instead of 14). Also as usual, I got a message during the upgrade that > Postgres 14 is obsolete,. but the binaries have been left installed and > I should upgrade to Postgres 16 manually ASAP. > > But after the reboot, PostgreSQL failed to start because it needed a > shared library (libldap) which was no longer there. So a normal > pg_upgradecluster wouldn't work. sudo apt install libldap-X.x did not work? > > In my case the quickest way to recover was to install postgresql-14 on a > VM, copy the data direcory into that instance and make a fresh dump, > then install postgresql-16 on my laptop and restore the dump. Annoying, > but no big deal for the small test database I keep on my laptop. If you > have multi-terabyte databases, your situation may be different. > > I'm not exactly sure what went wrong (I got some conflicts during the > upgrade and maybe I shouldn't have invoked apt autoremove?), and you may > not have this problem, but make sure you have a backup before the > upgrade. > > hp > > -- Adrian Klaver adrian.klaver@aklaver.com