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 1lzAjn-00058O-L9 for pgsql-general@arkaria.postgresql.org; Fri, 02 Jul 2021 04:25:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lzAjm-0002lA-Ku for pgsql-general@arkaria.postgresql.org; Fri, 02 Jul 2021 04:25: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 1lzAjm-0002l2-8A for pgsql-general@lists.postgresql.org; Fri, 02 Jul 2021 04:25:10 +0000 Received: from mx4.wp.pl ([212.77.101.12]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzAji-00026n-My for pgsql-general@lists.postgresql.org; Fri, 02 Jul 2021 04:25:08 +0000 Received: (wp-smtpd smtp.wp.pl 4819 invoked from network); 2 Jul 2021 06:24:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1625199899; bh=q4aqaZcGga8d0B7W915nC50rABEmBxPqvK5BGsXJzP4=; h=From:Subject:To; b=dqzjkrAixxFGJ1CsbMGEBENN7W6wdKoDF+eMdP4KaHK2yTSAZhxoTvQbfMIARfw4H 35JS2xc+iRLaz5dgtknajEv7pXCsWdVozlNRXuFsLBnqVlaHT2xFuHCs45JTmpnoJY 4Oe9vNxN81ZcG8Vmbne3fgA7+mHRYE7l+AU69wys= Received: from afmv206.neoplus.adsl.tpnet.pl (HELO [192.168.1.210]) (laurentp@wp.pl@[178.42.73.206]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 2 Jul 2021 06:24:59 +0200 From: "W.P." Subject: Re: Damaged (during upgrade?) table, how to repair? To: pgsql-general@lists.postgresql.org References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> Message-ID: Date: Fri, 2 Jul 2021 06:24:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WP-MailID: 70b75a211b3689fd269918f12b776464 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [EHME] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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). Laurent