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 1lyxXT-0001qp-4V for pgsql-general@arkaria.postgresql.org; Thu, 01 Jul 2021 14:19:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyxXS-0003xA-39 for pgsql-general@arkaria.postgresql.org; Thu, 01 Jul 2021 14:19:34 +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 1lyxXR-0003x1-MC for pgsql-general@lists.postgresql.org; Thu, 01 Jul 2021 14:19:33 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyxXO-0003tl-Qs for pgsql-general@lists.postgresql.org; Thu, 01 Jul 2021 14:19:32 +0000 Received: by mail-wr1-x42e.google.com with SMTP id j1so8438793wrn.9 for ; Thu, 01 Jul 2021 07:19:30 -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=zRPmgNwboOsB0CL7CKmXsHsgoka/i/3JWSxkqsohI4Y=; b=U+MhWAaXrMoCjLBhBz7aKDFyJ0HUYy264bBIaSxerHs1ocK9DOq7M/2PGexaB7vWqM eNgKJqqGtq09WGlPVMgb3K8u7S9VlwR7hVAvhPerDqjtrlv6y9NTv976QHsIUsAXS4xR 1sTwv0Jpt0jRAVf5rs5FaidHP4tBDqi+NOU9aT7pJM1Q+cePvWfGwXt0BSD/fVxTvmPB ljDUcPr4tNf96OyYUZFknhZC4rAI739JNRoJ6rbYepT8BlG0gJ+QSDHBHhHS/X0ZBrk/ 5SIVaD6d9pgYMcoun7R1VMC/0gD0tqVvh7eoZAF2DxuilU0VKzPgkiR3xeL9fIFCvcQ1 YdSw== 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=zRPmgNwboOsB0CL7CKmXsHsgoka/i/3JWSxkqsohI4Y=; b=bAaX7FeVnTk4GpMoCHV8LNxqh9QIogviRkUfOsNhOryBtzzu3p7Xw10tE32CZBW9xS kvIpbDjiL0ADk+BOKtUz2nepzTRwjkwiWx53dY3FJaggb/zXMOuz9HdmkpkZpLqpCd3i IhukAFlUidL0Chsj7Br4ItlOMFLdg1milN8FBFpaRa/v20nAZY+G3U3wHtUgTMnRo3CU 7M27kjsFVShAoJy7dOQrNBtav/cJpEkwWcCcNBDXBfEwGS1eWI4hue9EkMDsYGy0ch/J 739rSvzgoKQ9D9M/6QQYljLrm+RGpB+TPxrl2oMHL1cpMHk7NgVIUnZnLCRtQ4FM+Uxj cuow== X-Gm-Message-State: AOAM5318pObYDsQ3m56vrRijOKBQ3FEJl5zN5EjheiZN8VKnvCFUZ1RV NU+01ah61lxawsz6LGvoJECNqA== X-Google-Smtp-Source: ABdhPJwUCVrss3DzG1ZLNRsbZkns80rxhszKgE+ssLsilzWmFgitzVEoYpFoJab21vfvBdGZn+rnGQ== X-Received: by 2002:a5d:5701:: with SMTP id a1mr9488839wrv.216.1625149168863; Thu, 01 Jul 2021 07:19:28 -0700 (PDT) Received: from localhost.localdomain (217-149-174-251.nat.highway.telekom.at. [217.149.174.251]) by smtp.gmail.com with ESMTPSA id c133sm10718128wmf.0.2021.07.01.07.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 07:19:28 -0700 (PDT) Message-ID: <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> Subject: Re: Damaged (during upgrade?) table, how to repair? From: Laurenz Albe To: "W.P." , pgsql-general@lists.postgresql.org Date: Thu, 01 Jul 2021 16:19:25 +0200 In-Reply-To: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> 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 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 -- Cybertec | https://www.cybertec-postgresql.com