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 1lz3HK-0005mY-62 for pgsql-general@arkaria.postgresql.org; Thu, 01 Jul 2021 20:27:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lz3HJ-0006w5-6G for pgsql-general@arkaria.postgresql.org; Thu, 01 Jul 2021 20:27:17 +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 1lz3HI-0006vN-8Y for pgsql-general@lists.postgresql.org; Thu, 01 Jul 2021 20:27:16 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lz3HE-0006qv-L2 for pgsql-general@lists.postgresql.org; Thu, 01 Jul 2021 20:27:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E405F32008C3; Thu, 1 Jul 2021 16:27:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 01 Jul 2021 16:27:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=B wIjVfJtHCMJ/xOHO6UWbL9PL+v6LiUjtC/2Axj3AX0=; b=d8khd8UE/3kkwChno SOAAWBT9jUNbVo/ZHvAYGBtocRdKZCr8uJtgYYQZo34ymoF0YKVVX5F/f+R7p6XO mSWqjtW8ATFJ8Ikp/mVHpr0CzdBrwMFrVzEu772OG9PJVGld+t0qnMghWUy5PEqr MTeQZmv+x/qHDihcrCDipjrA62eDg0etsraAWW0fNdfB6ADAjot96fSubb/Xdq0y gmu+VDmBkqZH4AQXY9IATct0M+tFBlwCn2tQ2yw7lmfALBaTSbU6tXwCaNNMJCU3 CkNWn7ug2rBPSvFrJfqGfBmoKcSAWyHHgjJ+MoVqBOrBtYp18wpzPg6GZbXaPmWD uZSMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=BwIjVfJtHCMJ/xOHO6UWbL9PL+v6LiUjtC/2Axj3A X0=; b=bAtJLL6GH4aCVx7flvEo/7yW8CVX0H7iohxaU6A4Dbv7hxDpKhvLJlmmm HjgVAwwb0axAL3WJR+Dq4g5mifP2Sbu0Zyt+OwKD6Jo/eHiczwHk7mnUkF4BiLO8 zAj+WM/vMXNlJNyekrNzctrSNQjKrZgpnMChsHzSj4/D6MyPs3mnqnM6Tke2ADz5 8y9jDs/3jglIbV9OMa49GDTtl9u/sBzYIReWLaXkHZ7rW1UrzLAMDCI94YIhuo6F LCD6TbQ7jFtxUYJWl5QLQPxaR+0Uz9O2peIb66/fmscGOBqS1fjmsyNEpeqwgJ35 KAx6pJL+M+BS49aMGdWIiKc7R2YUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeiiedgudegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefve efueegffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Jul 2021 16:27:09 -0400 (EDT) Subject: Re: Damaged (during upgrade?) table, how to repair? To: "W.P." , pgsql-general@lists.postgresql.org References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> From: Adrian Klaver Message-ID: Date: Thu, 1 Jul 2021 13:27:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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? > > > Laurent > > > -- Adrian Klaver adrian.klaver@aklaver.com