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 1m3xLn-0002bg-Ia for pgsql-general@arkaria.postgresql.org; Thu, 15 Jul 2021 09:08:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3xLm-0004Nx-DJ for pgsql-general@arkaria.postgresql.org; Thu, 15 Jul 2021 09:08:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3xLm-0004No-4K for pgsql-general@lists.postgresql.org; Thu, 15 Jul 2021 09:08:10 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m3xLi-00064C-Vn for pgsql-general@lists.postgresql.org; Thu, 15 Jul 2021 09:08:08 +0000 Received: by mail-wr1-x432.google.com with SMTP id v5so6788513wrt.3 for ; Thu, 15 Jul 2021 02:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=2m+hjcf0S1FHYelpdHrwch0oJhdD9bRDP8/LYUaoyh4=; b=V2rr5+3gFngzmSnnsrROvsTxsS9H2NdSRT8OHr1rtvgv8/NZehl8FhvKWRhZQISMpI I/uZO58DUOeSGxJnyPGRtK3P5F8bte/dRgaNohhSotyhlNbvUEmHWIx3cxzihw/y9lSE yH8o5eVr/uGPJXzee22QwkQj4K4CzXkxf0K35VjUtmLomVJU3WnWqHjTLKig8wvwuBat xF1ECJ7JBE5JxiiCa0LVoiwv/qEths3QupBFWUp0Nx2BLrgZhtIyl65gOc1sEnVlsN5F Q4dwkVll1+A++OXZZDDx4gqS9eIrWb8AcKKS/R919ff1bYqvjDkh4LgV8FIUxizFW6uz lB0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=2m+hjcf0S1FHYelpdHrwch0oJhdD9bRDP8/LYUaoyh4=; b=BbOXiRlQFBsbYKgAwIQa1EkbHpZJRfLWF4jbMWQjwim2FlcEjqQUWkflkb4yPmrxUE Mp3/awR0ipOcyFKMtE5INiPPXvjpEwFKTinOS5c9N80N03j8V4ula7rwnSZs3s04g000 l1jCyi833xg7CyfraPzHlgtyId8MfbZxoKL+swZ8z5rHgXSgAipE70J5gmde+ZhgaME9 2BbHJudpixoPJrkVjnlKhAxZF8RIPX590hy3alWRYvmLqgYr2MsPqxkmUOX2rURYq9ft sQPMaz5uEANTxSIAUXj+Hebs+h4Nx8CPA+uF63p6bNeFLqTj3e1Aiv8BIwtw63VhAiFH rIjw== X-Gm-Message-State: AOAM530S1jGCJlpTLywZCdjIJPjgHfnTwLswlJymm0XEOhllqxO3Rr3r u4v+uY637cP45aJUG5P12YPukg== X-Google-Smtp-Source: ABdhPJyLJUOC9JDB/TJ4sIMM8vmflr0+0KbdOT4zzdPqCcIOtKM7YIoQRr0mKybEOdUd7Tl/uKsDeA== X-Received: by 2002:a5d:6189:: with SMTP id j9mr4275074wru.196.1626340085226; Thu, 15 Jul 2021 02:08:05 -0700 (PDT) Received: from localhost.localdomain (217-149-169-206.nat.highway.telekom.at. [217.149.169.206]) by smtp.gmail.com with ESMTPSA id d14sm5632658wrs.49.2021.07.15.02.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 02:08:04 -0700 (PDT) Message-ID: Subject: Re: Problem upgrading from Postgresql 9.5 From: Laurenz Albe To: Adam Norwood , "pgsql-general@lists.postgresql.org" Date: Thu, 15 Jul 2021 11:08:04 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-07-14 at 16:12 +0000, Adam Norwood wrote: > First post and I'm a complete beginner when it comes to Postgresql, however I've been tasked > with updating a versionn 9.5 install on Ubuntu 20.04 to just about any later version I can > get (latest preferably) but have hit a number of roadblocks. > > The machine has version 10 and 12 on it and by default, something I'm not sure how to change, > postgresql tries to update to V12. However it hits the following errors when trying to update > > Upgrading database moodlelive... > pg_dump: error: Dumping the contents of table "mdl_local_intelliboard_details" failed: PQgetResult() failed. > pg_dump: error: Error message from server: ERROR: could not access status of transaction 2745040900 > DETAIL: Could not open file "pg_clog/0A39": No such file or directory. > pg_dump: error: The command was: COPY "public"."mdl_local_intelliboard_details" ("id", "logid", "visits", "timespend", "timepoint") TO stdout; > pg_restore: error: could not read from input file: end of file > Error during cluster dumping, removing new cluster Unlucky you. The database you are tasked with upgrading is suffering from data corruption. You would get the same result if you SELECT * FROM public.mdl_local_intelliboard_details; You first have to deal with the data corruption, then you can upgrade. You might have to hire an expert. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com