From: W.P. <laurentp@wp.pl>
To: pgsql-general@lists.postgresql.org
Subject: Re: Damaged (during upgrade?) table, how to repair?
Date: Fri, 2 Jul 2021 19:18:12 +0200
Message-ID: <cd686a45-8a27-a1a0-da79-b2fec00d6d9b@wp.pl> (raw)
In-Reply-To: <fddafac2-f811-4c31-76af-f8f04e014d18@aklaver.com>
References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl>
<0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at>
<7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl>
<e8399909-85db-af68-3bd3-febdbc4bfd72@aklaver.com>
<e7f5cf4f-0150-f870-92c4-c2aa193be95e@wp.pl>
<fddafac2-f811-4c31-76af-f8f04e014d18@aklaver.com>
W dniu 02.07.2021 o 17:16, Adrian Klaver pisze:
> On 7/1/21 9:24 PM, W.P. wrote:
>> W dniu 01.07.2021 o 22:27, Adrian Klaver pisze:
>>> On 7/1/21 12:56 PM, W.P. wrote:
>>>> W dniu 01.07.2021 o 16:19, Laurenz Albe pisze:
>>>>> On Thu, 2021-07-01 at 10:56 +0200, W.P. wrote:
>>>>>> I have a PG 11.12 (was 9.5 or 9.5) upgraded from 9.x (during OS
>>>>>> upgrade).
>>>>>>
>>>>>> One table is now damaged, trying to dump it results in server
>>>>>> restart,
>>>>>> message is "invalid record length xxxx maximum is yyy" (from memory).
>>>>>>
>>>>>> How can I (?) repair this table? (for recent data this works OK).
>>>>> If you have a backup, take that.
>>>>>
>>>>> If not, hire an expert in data recovery.
>>>>>
>>>>> Yours,
>>>>> Laurenz Albe
>>>>
>>>> I have something similar to backup: old database, but it is 9.5,
>>>> how can I install 9.5 binaries / libs / config on Fedora 30 i386
>>>> (with PG11 installed) side-by-side?
>>>
>>> Is the old database on another machine where it can be started and
>>> then the data dumped?
>>>
>> It is on another disc, with OS that has problems (F24 does not boot
>> beyond single user mode, Network Manager doesn't start) after
>> removing power / battery while in "suspend to RAM".
>>
>> Thats why I think about setting 9.5 on my current machine (F30/PG11
>> cluster) and then do a dump, only I need to know how to do it
>> (binaries / libs / default cfg + data copy).
>>
>
> So you have backup of the failed machine's disk stored somewhere else?
No, I have disc from this machine, looks not damaged (random files).
Only problem that OS does not boot beyond "emergency mode".
>
> Otherwise how are you going to get the 9.5 instance to the new machine?
>
In modern Postgres I've seen there is possibility to have several
(different versions) "clusters" on same machine.
My question (for now) is how to do it?
(I can see PG10 somewhere in /usr/pgsql/postgresql-10/ - bin, lib,
share, postgresql-9.6 is empty).
Laurent
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: laurentp@wp.pl
Subject: Re: Damaged (during upgrade?) table, how to repair?
In-Reply-To: <cd686a45-8a27-a1a0-da79-b2fec00d6d9b@wp.pl>
References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> <e8399909-85db-af68-3bd3-febdbc4bfd72@aklaver.com> <e7f5cf4f-0150-f870-92c4-c2aa193be95e@wp.pl> <fddafac2-f811-4c31-76af-f8f04e014d18@aklaver.com> <cd686a45-8a27-a1a0-da79-b2fec00d6d9b@wp.pl>
* 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