Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8oPh-00C1Mx-5A for pgsql-admin@arkaria.postgresql.org; Sat, 26 Apr 2025 22:54:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u8oPf-007SSO-Ew for pgsql-admin@arkaria.postgresql.org; Sat, 26 Apr 2025 22:54:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8oPf-007SSG-3T for pgsql-admin@lists.postgresql.org; Sat, 26 Apr 2025 22:54:23 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u8oPc-0027w2-38 for pgsql-admin@lists.postgresql.org; Sat, 26 Apr 2025 22:54:23 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id C181813801A2; Sat, 26 Apr 2025 18:54:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Sat, 26 Apr 2025 18:54:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1745708059; x=1745794459; bh=3l0skCoRr/ FpE5wy4ILNn/TUUhG2bay/E4yeFFQpSl4=; b=dxxDHGmUAwhX4FfTzi0znIuQJ8 XohcTaDYgViywsUwnasrsf3SeHoWkJ0BCAvfHQ2kxvGR0UNfsMxiZIr6pNwfxXiK 3WZ/3g83SPkKtULALrhkyRRquCIf4Wpf8romnRc40XQi9o01+UF1Ry7nEcg9Ggnc Wawp/qPU2S316xQsQTQ9TsmmlCMcRyQRfUXchQoB8x5lBEZfJLoXMESvZxme3t0y NDrper6qCXy7M3fzMvLjByPWR0++trpmBotHl6hkg66WkeObpTAloUfW8po9e1QR VkGrW+PxLdpHDMrHiCT97RHFC/+18TZ1nchG6VF2kt6/bn2yBxwA5bopJgEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1745708059; x=1745794459; bh=3 l0skCoRr/FpE5wy4ILNn/TUUhG2bay/E4yeFFQpSl4=; b=wO769yheCx9iY8gIw W6XUAtv26W+YpVQiCJQFlb9wj2IkrBsBi5CZ20MTIuSLIf+xWVKghz00QeSZy91w ReopLEq8b9Nw2B9L1ZMQQA/bBANfNhuARnxR3XfqkJuQIrbEv5GPu5a+GsJ8VLMV qjAYpBaqmDAFiGX5WSaL+T77UOyHyub9u2BkcuJ+NzY6LCKyi7w58/1CSyTAWLFC oGCWd9F0ngI2g3I+41W2cTp9TvOFEoJ0LPdCVfqLT0qqq4C90DYwH1i9tlFMDsg3 MJp/pxp6W2jUDnbEYx5d1CjTfp119K44E6WA9kL9IBdKDX/Oiht8akizXJGv7D7R 7E0Cg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvheeigeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddv jeenucfhrhhomhepufgsohgsuceoshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrg hsrdgtohhmqeenucggtffrrghtthgvrhhnpeeggfeitdfhueefhfeiteejfedviefhledt gffhvedtkeegveevhfdtvedtjeefteenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehssghosgesqhhurggurhgrthhumhdqsghrrggttggrshdr tghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh eplhgruhhrvghniidrrghlsggvsegthigsvghrthgvtgdrrghtpdhrtghpthhtohepphhg shhqlhdqrggumhhinheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpth htohepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrdgtohhm X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Apr 2025 18:54:18 -0400 (EDT) Message-ID: <9f3f0338-996c-45d7-9ce8-04c55be8c044@quadratum-braccas.com> Date: Sat, 26 Apr 2025 16:54:18 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Intermittent missing chunk ERRORS To: Laurenz Albe , pgsql-admin@lists.postgresql.org References: <870ee861-8c1c-4979-846a-e9e507ca60f2@quadratum-braccas.com> Content-Language: en-US From: Sbob In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/26/25 2:24 PM, Laurenz Albe wrote: > On Sat, 2025-04-26 at 11:09 -0600, Sbob wrote: >> I am working with a client, they have an app that is running into error's like this: >> >> SQL Error [XX001]: ERROR: missing chunk number 0 for toast value 44915477 in pg_toast_5321896 >> >> I thought it was a corruption / REINDEX issue, however I have run REINDEXon the index, >> REINDEX on the table and even a reindexdb on the database. Today they passed me another >> error (the one above) and once I was able to login I ran the same query the app team >> referenced and it ran without any errors. I asked them to re-run the query and they >> informed me that it now works for them as well. >> >> I assume that if this were a corrupt index issue then the query would continue to fail >> every time. >> >> Has anyone seen this type of intermittent index error before? and thoughts on where to >> look /how to debug this? > The error is data corruption. > > If it is transient, that could mean a couple of things: > > - a TOAST index was corrupted, and REINDEX fixed it > > - faulty RAM corrupted data, but as soon as the corrupted buffer was evicted, > the problem was gone > > - somebody updated or deleted the row, and the corruption is hidden > > Yours, > Laurenz Albe I did REINDEX and the error came back, however this last time when they informed me about the error they sent the select statement throwing the error and once I logged in I ran their select statement and it worked, no REINDEX had been run, and then I asked them to run it again and it worked for them as well So, the first option above is not the answer and I dont think anyone updated the row, their process is mostly reads but I will verify, so maybe the RAM issue? the servers are cloud VM's in a private cloud