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 1nIK4D-0002Pj-1L for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Feb 2022 00:45:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIK4B-0000NZ-Oy for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Feb 2022 00:45:39 +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 1nIK4A-0000NO-3K for pgsql-bugs@lists.postgresql.org; Fri, 11 Feb 2022 00:45:39 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIK46-0000p2-9E for pgsql-bugs@lists.postgresql.org; Fri, 11 Feb 2022 00:45:37 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 1674B3200A64; Thu, 10 Feb 2022 19:45:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 10 Feb 2022 19:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=z5pwAbgrmiSaNAc9V+TY4nEK2Ew9GUDfFv7PsV yuKls=; b=xVzmqpBZemB92WvbaOodkIYahBwPX4y7FHtxG738J9ZV6RWnAbeSzy +xbf9/SyG80V8belRq0X2EUKCjwFP7oBkgb3z1HQrdXiwJUBwsjzF1irnmsuhoYS iMQsL53ISLMWY8SQQhdVoBzPEktxcgHk4qbJ3zuDE+JnokKYItoxgoM4zLu75gk4 ctEU8U1Tuefwx5131q/tVuexPyIm5+Ymo9LXK4wSl7ltX9STraZKTsAtKCX4MFoJ mMOmBlN4vXoVMqI2yfzmW/AEtMBgvVRNDxHie1dhGP4A61V3/fa4EonEU4MAZejX qAk5sdxw8tytlxSA30OpB/2i1XfXAYIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=z5pwAbgrmiSaNAc9V +TY4nEK2Ew9GUDfFv7PsVyuKls=; b=M0r1t1t/V3u5iKM+SvBjxmX2Y82hKnfGl Fjqqb6z6smZdybr75ATQ818I4dLIkR7zht5uJkgWD63X53S3cUK1zJgRGjSJu+Bo GdPcO5tLaZ2CY8PS19dK81qgpeMW9hROxhjLtJeWFb0FFBREVZUfB7GMoW61lBN0 COqPgYAllGKj7ERkXbPFVWfx1gCgDQ0VrKpuqMJ+2EQKxx84wU0wG3Thcn6LrU7d 7dyhYqirTq8CrrgNULvgXZsv0cK3GVGi63wCztvdg/qbmJU89KGy7zLBpsB8fFVM 9mG30A6IF9B9o2W42ISkfS0Hx5fo1O94lZIV39d9F1pvZogdW4RaA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddriedvgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeffhfeu ffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Feb 2022 19:45:29 -0500 (EST) Date: Thu, 10 Feb 2022 16:45:28 -0800 From: Andres Freund To: Tom Lane Cc: Justin Pryzby , padam.tehlan@leptonsoftware.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17384: ERROR: missing chunk number 0 for toast value 152073604 in pg_toast_2619 Message-ID: <20220211004528.65yrelmfpkw4wy5e@alap3.anarazel.de> References: <17384-f50f2eedf541e512@postgresql.org> <20220203044257.GH23027@telsasoft.com> <198233.1643863841@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <198233.1643863841@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-02 23:50:41 -0500, Tom Lane wrote: > (I say "just" truncate pg_statistic, but you'll have to do that > in a standalone backend started with the -O option, else there > are permissions checks that will prevent it.) FWIW, in recent releases you can set allow_system_table_mods to on as a superuser. postgres[62458][1]=# TRUNCATE pg_statistic; ERROR: 42501: permission denied: "pg_statistic" is a system catalog LOCATION: truncate_check_rel, tablecmds.c:2159 postgres[62458][1]=# SET allow_system_table_mods = true; SET Time: 0.548 ms postgres[62458][1]=# TRUNCATE pg_statistic; TRUNCATE TABLE postgres[62458][1]=# RESET allow_system_table_mods; RESET > The bad news is that there might be more corruption lurking > elsewhere. What event precipitated this? > > I think we have seen some bugs that would preferentially affect > pg_statistic, but not recently. If you're not running a current > minor release, an update is advisable. Yea, hard to point somewhere concretely without more details. Greetings, Andres Freund