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 1jdDxx-0001Fj-2S for pgsql-general@arkaria.postgresql.org; Mon, 25 May 2020 14:20:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jdDxw-0005Oj-2E for pgsql-general@arkaria.postgresql.org; Mon, 25 May 2020 14:20:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdDxu-0005Oc-4Q for pgsql-general@lists.postgresql.org; Mon, 25 May 2020 14:20:31 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdDxk-0001Eq-I0 for pgsql-general@postgresql.org; Mon, 25 May 2020 14:20:29 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7669ED49; Mon, 25 May 2020 10:20:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 25 May 2020 10:20:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=A W+KEuC6qAFF2O7Vn9o/5a5ngRvTMfK0b0aYzguZXa8=; b=Psr4eGzJWhdrxGUCc 5Dd8/rnow1NHTC4y27EF80pcEr04WP24kybmwtCwRLydOmsXl8lMB/2/LkAZOWn2 kFdnkz9fpyOkBU+CFASWcwd4f9AFK4KjFwCHcObxX2Eg8xoDh5rQ8aWa+WAh9vQm oI0Pl830lSzvN0HDuvDVkC5QcaVGeRIDB3XCK4pXL2yUi0rOv9gYpM/q4pUQxhF6 rNoRbfKDqwvdT3eLau2PuTwMSyvRq1W4nCHk1UVFmGYT8n897YotnG+E4zDRKGHz 42AJADMgWadZSbHH580unu3PbUiQfBFyMRbfnUFPG0XlIG+qRHlxn7/ICMfjs05Q uPkwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; bh=AW+KEuC6qAFF2O7Vn9o/5a5ngRvTMfK0b0aYzguZX a8=; b=XzYEyiBsxTTV6JoTnvgz/2bgCDxM+gozuziMkP+xpImQoeRmOpiFOsFED EOKBdEglhTN4fjruBYIiR9OYnibbZnsGK4uVATfjbwHSAV0fTrD2U+zT37u12OBv TXXRzB+NEr7m8b00ZW7ETbKVBPvH8Y37ejBXL/Hawj0omJeSTpQORMsEeuRHp+Ji KpCKhtirAkzGR8vWGXxHhMHIlStWcVxpdYGiXQ6DPZdfEQa0B6xdSngyOFX5nt1E vqSD/nmPbZzbo5XwvMo749QTrJwhF5BBe6e2OKsu2IdAmeC8T3gytkzeeO6asydW N/8BMkwhx42xHvBzhVGRSoalrKLFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvtddgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeggfdvffeutdefudduudekhffhgfeiheehuefhieej tdffvdeiieduffeiudelleenucffohhmrghinhepsggrtghulhgrrdhorhhgpdhsohhurh gtvghfohhrghgvrdhnvghtnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 446D9328005A; Mon, 25 May 2020 10:20:16 -0400 (EDT) Subject: Re: pg_dump crashes To: Nico De Ranter Cc: pgsql-general@postgresql.org References: <38072bf3-a3dc-2a4c-21d3-a024a2dfce8b@aklaver.com> <5655d83a-85ff-e8c0-0547-828aca12db39@aklaver.com> <3e14f4f4-342f-c7bf-8ec4-af348b0c8172@aklaver.com> From: Adrian Klaver Message-ID: <5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.com> Date: Mon, 25 May 2020 07:20:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: 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: Precedence: bulk On 5/24/20 10:30 PM, Nico De Ranter wrote: > Unfortunately not. I discovered the issue rather late. The last working > backup is about 2 months old. Well first it is entirely possible this is not the only corruption in the database. Second you are probably going to have to reach out to the Bacula folks: https://www.bacula.org/support/ https://sourceforge.net/projects/bacula/lists/bacula-users I would say the questions to ask them are: 1) Is the md5 required for a file? 2) If so how and over what is calculated? Then you could experiment with trying to update the md5 field with new data. > > > > > > > > Following up on the max(bigint), I tried > > > >     SELECT md5 FROM public.file where fileid >2087994666; > > > > and got > > > >     ERROR:  compressed data is corrupted > > > > So it does look like those entries are killing it.  Now for the > > million-dollar question: how do I get them out? > > Do you have recent previous backup? > > > > > Nico > > > > -- > > > > Nico De Ranter > > > > Operations Engineer > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > > -- > > Nico De Ranter > > Operations Engineer > -- Adrian Klaver adrian.klaver@aklaver.com