pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Adam Norwood <norwooda@wolvcoll.ac.uk>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Problem upgrading from Postgresql 9.5
Date: Thu, 15 Jul 2021 11:08:04 +0200
Message-ID: <aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at> (raw)
In-Reply-To: <AM6PR0502MB364094A5E813F218BDA54E08E9139@AM6PR0502MB3640.eurprd05.prod.outlook.com>
References: <AM6PR0502MB364094A5E813F218BDA54E08E9139@AM6PR0502MB3640.eurprd05.prod.outlook.com>

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






view thread (2+ messages)

Message-ID: <aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at>
Permalink:  ../aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at/
Also on:    postgresql.org/message-id/aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, norwooda@wolvcoll.ac.uk
  Subject: Re: Problem upgrading from Postgresql 9.5
  In-Reply-To: <aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at>
  References: <AM6PR0502MB364094A5E813F218BDA54E08E9139@AM6PR0502MB3640.eurprd05.prod.outlook.com> <aafbdbd48ef91bceb928ab1d593e064ad0b4dede.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox