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 1uP5A0-00HP3t-R4 for pgsql-general@arkaria.postgresql.org; Tue, 10 Jun 2025 20:01:28 +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 1uP59x-008hFu-42 for pgsql-general@arkaria.postgresql.org; Tue, 10 Jun 2025 20:01:25 +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 1uP59w-008hFm-Pg for pgsql-general@lists.postgresql.org; Tue, 10 Jun 2025 20:01:25 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uP59v-001IHo-1F for pgsql-general@lists.postgresql.org; Tue, 10 Jun 2025 20:01:24 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-70f862dbeaeso60484407b3.1 for ; Tue, 10 Jun 2025 13:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749585680; x=1750190480; darn=lists.postgresql.org; h=content-transfer-encoding:subject:to:content-language:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Y4WIXZedWRCZvCXQ3hjLUQ1UwT+e0BLzn9vvAqC9iYg=; b=BbNcdBX2sVa0NC+k2TvvTFptOMhC3U1YJd/bcRotMq4h1PPW7AS1a4G8qQeD2IgDrO jbNwL+ct0S3ml8y2an5lOCM/UH74RAXLL5FGH9okY+rgP91R6k2KpAvMBSAwSpWgIFbH TMu6N9Y1uFU7nofspECQXIzYwZOqnBTFkZgUlcmgnKpnH3S4O69JmgnPdEd/qV0jCsvS cIwJn3fQVIp+jb/+SKAetUyliKGVNkt1M1PVcpsziI8/wnNjpkljR5kyFBGB16OFXCBJ +8b8vZIIREpPTxf3t5PemVGGczLWdJbRnFTiqffqJiDSVG2wAhqPLjbu6F8zHAjXkqRR JTMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749585680; x=1750190480; h=content-transfer-encoding:subject:to:content-language:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Y4WIXZedWRCZvCXQ3hjLUQ1UwT+e0BLzn9vvAqC9iYg=; b=ZfadmVVlvQhBabbrG0+cKhAMbVRym0/9vVDgkq3RzSF5GOGwvPTFZ4dBfDPx8pV5wj INiw9VLdr54POw9f/zzU8kT8Ojdw8QUKY2Ue0dOdX7VOQinbPqYHkjCJr6/xTrlA8qq2 tqtm3XrYhUjWCtJCLUPa/BI21mvZ9LBEfeKAjqE4rRO8G/9vBbtCMqJsdNdy2R+UBYVN UoG1x4G5JgV/IqSRB2RXNp5I0oeS2lSlqMjrqXVgLFDAUchUwIGTOkldIKmGS+xSN6Ok N6VUeJmirjFaDmg2msHqqGzjhnHn4oP7pxeJ+G1GJMa69DhxSs15rDKrW9E1PpQMalMj nzXA== X-Gm-Message-State: AOJu0YxrEq9fF1OJaybgFHHMU9RxWaegQA3FOp0zphK1oD/mBl+1L983 IbRy4BVfOKWQBpFsN4QQx/Ij7FCk1TXdQFAouxzGXFIe4T8hX5Ei3jgxIaaCoYpt X-Gm-Gg: ASbGncucI8n0+A7nLJnMR48KnB432DsFvbVaP4nQD5jIcq16u3/DOYhG3qHruPw4daI PLDUENQ87fHNeCZcjSuY3oP4/wGXcGW8IxyrGpIhRqjWgxNLyyMRTjOrr0lOcziuI/ZbHeBPxXM pvS3UrHrrOmWRTTYTksNFlCVKIfWjB4XimKLr5BjqUCAmyu7TIxQFyP1V+1OboUe5x/didExVx2 Jw+ErqPJVrMc6/rYjewyN1Dx2D5CkK/LlgBSMgigwSjd2iuS1VNOCtExTmhY1SJxdjqTJKZXYoQ /q6HjNTKQvzrAhsuFfvJ0gsPTBTiTWvQUgS1sWdaTmVzdNsgxEU/tygg2+YexOovN5He8ey8WPe rlc6bmReRdNIQoy1wHt6LLkSeQOZH3n8VaP5njGEKpcdFTA== X-Google-Smtp-Source: AGHT+IFh9gMNmI3hnpAq9TLx0YNNy2Ud3xQnvUYz0E4+Qbltf0zTOZ5n4mJH/cAaNpQlHUfy4flZeQ== X-Received: by 2002:a05:690c:4b88:b0:70e:70de:64f6 with SMTP id 00721157ae682-7114224b75emr4431917b3.0.1749585680159; Tue, 10 Jun 2025 13:01:20 -0700 (PDT) Received: from [10.168.1.252] (99-121-248-144.lightspeed.sndgca.sbcglobal.net. [99.121.248.144]) by smtp.gmail.com with ESMTPSA id 00721157ae682-710f98afad6sm17764087b3.20.2025.06.10.13.01.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jun 2025 13:01:19 -0700 (PDT) Message-ID: Date: Tue, 10 Jun 2025 13:01:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jim Cunning Content-Language: en-US To: pgsql-general@lists.postgresql.org Subject: pg_upgradecluster version 10 to 16 question Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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?

Thanks in advance.