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 1uP5N4-00HUO5-GC for pgsql-general@arkaria.postgresql.org; Tue, 10 Jun 2025 20:14:58 +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 1uP5N2-008u6t-Jk for pgsql-general@arkaria.postgresql.org; Tue, 10 Jun 2025 20:14:57 +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.94.2) (envelope-from ) id 1uP5N1-008u4S-OA for pgsql-general@lists.postgresql.org; Tue, 10 Jun 2025 20:14:56 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uP5N0-001INo-0G for pgsql-general@lists.postgresql.org; Tue, 10 Jun 2025 20:14:56 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 81FE2138013C; Tue, 10 Jun 2025 16:14:51 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 10 Jun 2025 16:14:51 -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=1749586491; x=1749672891; bh=rz4IWnrYi6KzWYNduXWh86CZP90/WG0fxXA5u6hytWs=; b= jPsf4daxIPHQGYUsons8+m9z53EefKbpemYT8lnXsocOJwAcWMiIGhEsyRBL2Cvy 76auKafX+3PZyVGUwvbzhQYMCYIAAe6zOJfIxB+b45TEraZu4Tf0HnQTHIDdgych 3iNziVba/WcIVrESu0xxI/zMmrLa1hswdnRF4BwX3Yx2HtFtI/4hKE/BkUMhs2hG lhmoQBfbTz8EUoxPVXl+VOxbAUUoE7qkeHGRDLV8n35ZrwmNOLRCcHGmf9G1ETEQ OysQSSc7yhAyQOLJwNlaE+kaXrCv0O44a2fM2limft+G/8pJpiTFCIrVlCPkrZV4 K7y3cqVV5MsvJWc1ND34hQ== 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-sender :x-me-sender:x-sasl-enc; s=fm1; t=1749586491; x=1749672891; bh=r z4IWnrYi6KzWYNduXWh86CZP90/WG0fxXA5u6hytWs=; b=ZyCRlHOe/U20XuFW5 ZiQbIpozYq2vmROTRgYpapEwTHq+Q/XFGy1SkwhO1p/ge92iYeK9sPBrIivg5gkg TCIEoxK0u3RKor6cZyx6EvvarM6buUCdKtKjBvh3FNG5ZsZyaJRzR++ghjowg04u 3mDnss7Tkml9oYC5ey6RelRm5SibPYIuRRwd1DAdWC7/o2HjJYTX0sZQ8yvorSBH uKzy2DhpmpLUIlynz8dtTzlO4nMeWK8pJSX8IarBK7EncUqRucSa52DDXoh6oF2l pFzbMCfw8tXtDWWCVwAGjy7T+yJ4SzrOkVZ4NLCoJp8Wmt+iym3Q9j9Dc86WTE+U lUY3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdduuddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffelgeeifefgveduhedt hfekuedtffejveegffegjeevtdehgfduieetfeehjeehnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepjhhltghunhhnihhnghegieesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Jun 2025 16:14:50 -0400 (EDT) Message-ID: <98182efc-eb12-42f0-8016-01163b5c6fcb@aklaver.com> Date: Tue, 10 Jun 2025 13:14:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_upgradecluster version 10 to 16 question To: Jim Cunning , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/10/25 13:01, Jim Cunning wrote: > I had a Ubuntu 20.04 LTS system with a postgresql version 10 database, > and the system became unbootable.  The database was stored in > /var/lib/postgresql/10/main and I was able to recover the entire > contents of the data in that directory and below.  I now have a system > running ubuntu 24.04 LTS with postgresql version 16. > > I obviously no longer have a running version 10 server, so I cannot use > pg_dump to retrieve the data.  I have placed the recovered version files > in /var/lib/postgresql/10/main on my new system, alongside the > /var/lib/postgresql/16/main that was created when I installed > postgresql.  I have tried several iterations of the pg_upgradecluster > command, a Python script provided by Ubuntu, but it says it cannot find > the database files. > > I also see from the postgresql wiki pages that there is a pg_upgrade > utility program, but cannot find in any of the Ubuntu-provided > installation files.  Can anyone provide some guidance on how I might > proceed? 1) Do: man pg_upgradecluster 2) Assuming you used the PGDG repos to install Postgres you can do: sudo apt install postgresql-10 to get a Postgres 10 install. I would move the /var/lib/postgresql/10/main you created out of the way and then move the contents back in to the installed version. > > Thanks in advance. > -- Adrian Klaver adrian.klaver@aklaver.com