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 1v00ub-009YRq-3R for pgsql-general@arkaria.postgresql.org; Sat, 20 Sep 2025 16:58:13 +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 1v00uZ-00DZtg-Ii for pgsql-general@arkaria.postgresql.org; Sat, 20 Sep 2025 16:58:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v00uY-00DZtV-Jw for pgsql-general@lists.postgresql.org; Sat, 20 Sep 2025 16:58:11 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v00uT-001tXp-1F for pgsql-general@lists.postgresql.org; Sat, 20 Sep 2025 16:58:09 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id A2720140006E; Sat, 20 Sep 2025 12:58:04 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 20 Sep 2025 12:58:04 -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=1758387484; x=1758473884; bh=8cAC5kFB0HttqOQmFANLZU4NLNdR6Dw8dsbTOGO0Tr4=; b= Fxgx+Ue9dI7fKfLlJeHFhtj8+/XhlVMNHcxMHqiZVrRzTrFjbnPGuWXWbb1qiraP h3awgybPUu9qqoAe+zWlCMuqztdzsfKMQqMuGnp+jhEtUFnh+srmzlOtRmhTlEbC XkLUTWGS1zXwSHesR9qoJBfCYvIE8iUEet/e3cXxdKzNBKtb776/R6i6iKgZr13o /toyIbvK6yH+FJ//Cdcz2u7yv/+OHpaq9Zxzs5ZWBgDECeoXvd8v4pbUbR7Jkxu8 uF7R4Xdx7K3JVZpgvrJeFItbt6IuU0UzEycZdPWRJvxjuiuJwsVTsHPdnHokNsJw eOL08PSkJXHU6jaZJglmkQ== 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=1758387484; x= 1758473884; bh=8cAC5kFB0HttqOQmFANLZU4NLNdR6Dw8dsbTOGO0Tr4=; b=F EXLxsCEveQ8FaXp5oUDRA/rT2CYTM5ZHi3sKO0hlCPArSEyx6YOb4fTDDQISCfpN B+Af0ijTgna2THrpce301mtbSxrAMbjD1UxUDj9TqjHBnUk3UDl5dygQTXeDvy9M 4jQmBP/+cJ+RpgZ/w5inz2s/QPq5yxLJtmI+Io4jp3zWLEYl827Wr2R3emlcIv1T mNprR/imWg+7LL3tQCZiBlH+yNP0yXlePIk8B66ORSssehuVGmojrCuqqYpQZa7h GXgGv9Lz3lowjRMTO8idCOcRdsnFgg5UYh51UlS9s2k9kTkJA9efrFLZCWHBNZ1E AS0ZiTKpRo3XsroRzAHVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdehvdeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpefgudefkefhveefleevieeuveehvdduudekuddvvdelhfeu ueeijedtuedvvedvueenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohephedpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtoheprhhosghjshgrrhhgvghnthesghhmrghilhdr tghomhdprhgtphhtthhopegurghvihgurdhgrdhjohhhnhhsthhonhesghhmrghilhdrtg homhdprhgtphhtthhopeifihhmrdhrohhuqhhurghrtheskhgstgdrsggvpdhrtghpthht oheprhhonhhljhhohhhnshhonhhjrhesghhmrghilhdrtghomhdprhgtphhtthhopehpgh hsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Sep 2025 12:58:03 -0400 (EDT) Message-ID: <92999289-f47b-46ac-8867-9fa08041e2ac@aklaver.com> Date: Sat, 20 Sep 2025 09:58:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Index (primary key) corrupt? To: Rob Sargent , "David G. Johnston" Cc: Wim Rouquart , Ron Johnson , pgsql-general@lists.postgresql.org References: <8BCB3E64-990E-44A9-A0BB-079CC4C43820@gmail.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <8BCB3E64-990E-44A9-A0BB-079CC4C43820@gmail.com> 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 9/20/25 09:26, Rob Sargent wrote: > >> So the problem goes away once you’ve reindexed yet you claim it’s consistent? What are you doing to get the problem to recur after you’ve done reindex to make it work? >> >> David > > I was assuming the OP has a dump of the affected condition and is restoring (and perhaps re-fixing). No? From this post: https://www.postgresql.org/message-id/AS2PR05MB107548567EEDAAB3AF74A6C59EF11A%40AS2PR05MB10754.eurprd05.prod.outlook.com " > Is the PK definition in the pg_dump file? For plain text format can you grep/find it? It is in neither, that’s why I'm sure it doesn't get exported. After a REINDEX statement it is. >How is the dump file being restored? As the code to generate the index is not in the dumpfile this seems irrelevant to me. " Make of that what you will. -- Adrian Klaver adrian.klaver@aklaver.com