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.96) (envelope-from ) id 1vzcfl-001Ag1-1o for pgsql-general@arkaria.postgresql.org; Mon, 09 Mar 2026 15:37:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzcfj-00HDP7-2q for pgsql-general@arkaria.postgresql.org; Mon, 09 Mar 2026 15:37:32 +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.96) (envelope-from ) id 1vzcfj-00HDMj-0g for pgsql-general@lists.postgresql.org; Mon, 09 Mar 2026 15:37:32 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vzcfh-00000001Ivg-2nJt for pgsql-general@lists.postgresql.org; Mon, 09 Mar 2026 15:37:30 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id B54907A010F; Mon, 9 Mar 2026 11:37:28 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 09 Mar 2026 11:37:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm3; t=1773070648; x=1773157048; bh=63+NoeeZT6VteOJ7r9+uAopIeM0PR3Zrp1tPAlpdkOQ=; b= BUJrz3rN5Pv6Yy6JbDedLK+1Uk+1mZB4xDZa/1jY0mR8KY2aDwpyS0lyuAtZtdj8 DN64eox2mMFWuyqhAea6u/jRRuZ576TRucPZTwxoWEnv9JVNcLtqpxl8QCK634DY xL0HdkP8NSga35ptXNiZ8DW5T1qTG0AyYIa7JI1e2iFt3t7xIJWz3BtXF/1KXp9K g2+OJMiOGRbvbqgT/pZqF9ARla2W+LV8h72TIHW3tqG+1j4h6bx9OnaF55kra9Li b/qboF5ldGPASGPqf85iob27iJflEBQi02FYluY+F1D9M2R/ZW/qTxRm7X+0eclZ freo6pUbvFhfiKkJNzqgBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; t=1773070648; x= 1773157048; bh=63+NoeeZT6VteOJ7r9+uAopIeM0PR3Zrp1tPAlpdkOQ=; b=y iyjA8jeTWa/wXDkVsMQSqRghCVA/E9BbzUBvimsh1RxGKAQOa09hyanF9yBrKoIP otwQkB3KqOOsbsRfguK7+UhImGTkEzkzE66Cu8byqbf+FviPwE7UX3gk0o/ijSVT qv/mmVX7uBI7CCfevI3o3qI/cwzcxImU04SAnuaW91WUMOcE0CUzwMMyTXsR0sbx 1K+cuf88/yorzDH1Jm4aHi0yD3tWMuR1eCVQlmPv8xhd4MTXs37tcLWGSdJ7llPe V0nVl5OLqQ0H4wGcfFlSUuuTBJOk05Rdc2zSN1p9rewHX2wo9RQgumv89RUG+v62 glG7sDY4oLwtcRnPUrogw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvjeekhedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepgfdufeekhfevfeelveeiueevhedvuddukeduvddvlefh ueeuieejtdeuvdevvdeunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeefpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopehhthgrmhhfihgushesghhmrghilhdrtgho mhdprhgtphhtthhopeifihhmrdhrohhuqhhurghrtheskhgstgdrsggvpdhrtghpthhtoh epphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Mar 2026 11:37:27 -0400 (EDT) Message-ID: <7d455186-0cba-4fd5-9f9e-7051627b3ae3@aklaver.com> Date: Mon, 9 Mar 2026 08:37:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Index (primary key) corrupt? To: Greg Sabino Mullane , Wim Rouquart Cc: "pgsql-general@lists.postgresql.org" References: <58221272-d684-4799-a113-d5a5031a0b05@aklaver.com> <25b5291f-a3d3-4655-a3d3-57f28b70ec5a@aklaver.com> <78328b08-249e-4251-8a10-b5dac183442a@aklaver.com> <0868c260-9812-4629-b32d-026c1fe6089f@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/9/26 8:24 AM, Greg Sabino Mullane wrote: > On Mon, Mar 9, 2026 at 10:12 AM Wim Rouquart > wrote: > > I already saw finding the actual cause as a 'lost cause' as these > things tend to happen, however what bothers me most is that a tool > like amcheck which is supposed to find corruption also shows up with > no result. > > > Well, no, these things really should not happen. :) > > It may be too late, but it would be real interesting to see this query > both before and after the REINDEX: > > select * from pg_index where indrelid  = 'bcf_work_type'::regclass and > indisprimary; Déjà vu :) https://www.postgresql.org/message-id/CAKAnmmK9uKAcerhseNg6FSDOnMWmivM5ctUiTAdc1kobq94Dqw%40mail.gmail.com This post in answer: https://www.postgresql.org/message-id/AS2PR05MB107549DDE42DC0B8E31CB52BFEF90A%40AS2PR05MB10754.eurprd05.prod.outlook.com would seem to indicate that is not the issue. > > An incorrect indrelid is one way I can think of as to how pg_dump would > miss it, but that wouldn't explain why reindex would subsequently fix it. > > Cheers, > Greg > -- Adrian Klaver adrian.klaver@aklaver.com