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 1uzdNz-005hOL-NJ for pgsql-general@arkaria.postgresql.org; Fri, 19 Sep 2025 15:50:59 +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 1uzdNx-0089Z2-0T for pgsql-general@arkaria.postgresql.org; Fri, 19 Sep 2025 15:50:57 +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 1uzdNw-0089YG-4P for pgsql-general@lists.postgresql.org; Fri, 19 Sep 2025 15:50:56 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uzdNt-001IHL-2c for pgsql-general@lists.postgresql.org; Fri, 19 Sep 2025 15:50:55 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id D56A614001C4; Fri, 19 Sep 2025 11:50:52 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Fri, 19 Sep 2025 11:50:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.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=fm3; t=1758297052; x=1758383452; bh=kXQ1FHECNefApCCBN4zaWeciUhXr3quTBVX8K4G3LAA=; b= l0Ug0Et6RjPQlr6/5LMqGDgSPYQyhEUUcTq27aNPrEr9Y+RNa6o6tsdNE4fKVmyU OaCttPymE/pe8Tr1BBD6QbQUwlsPxE7RU1o/rr/I2/jMr6SQzGbHEiIo39AWlr8t r8eeYHt6euBT0je3SqAKLLaOduxlmK+puHGlMN7u4EJt7gHJinaK/2F1Rq0Zf8Kn 382xlItWbXThHaAoXLFY6YcDtrQhClgJ8Um86lT1QbTvvwTzVE1C+TAgImpHgW52 qt1v6JuvOJS8xtw8PI6AeSAtdElIICgjPQNyG3pcS5HLrjl/fU5aG3cOsrCIRpPE YbIcqr/zer4aJSNVBjm6YQ== 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=fm1; t=1758297052; x=1758383452; bh=k XQ1FHECNefApCCBN4zaWeciUhXr3quTBVX8K4G3LAA=; b=KIoMxUr5kVvngcUy8 AZ4F1m+Z6+0ZVfs4tEVTSENXY7hJDD3rp10y9KIf71gzOHiscv2q7qk/MVJhZo3x 8nyu3Yk+lukOPLXIRyn+LyoG512lrcpAjAIFJEstDi6SFXQ9kt9pMj8XwnmrD/VR Lb6q3eY6fsVxl68ubZCkf7gZLwRzzQ0y9QbIuGsPn/Qk0YjBQWNCuDB5ztv3MS7G zxBJu4rqp3fGB+uMxsuX+YgK851Z82I9hZW4TO12ssTFb6Tb6G/vvLtsir9OvSoB zwqua0sWQpiqKLSo+FqGPYPwrsaCWudTsvbWj9PhKKSsjVGpazNt5teQrl6EMGZH tD53Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdegleeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgrnhcu mfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqne cuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeelkedvleek hedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghr tghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfihimhdrrhhouh hquhgrrhhtsehksggtrdgsvgdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehl ihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Sep 2025 11:50:52 -0400 (EDT) Message-ID: Date: Fri, 19 Sep 2025 08:50:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Index (primary key) corrupt? To: Wim Rouquart , "pgsql-general@lists.postgresql.org" References: <1bfa0b6b-11a8-458f-a3f3-3f86574abc1d@aklaver.com> Content-Language: en-US From: Adrian Klaver 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 9/19/25 06:23, Wim Rouquart wrote: >> What is the result for the query?: > >> select * from pg_index where indexrelid = 'idx_376814_primary'::regclass; > > Name |Value | > -------------------+-------+ > indexrelid |2006873| > indrelid |1998823| > indnatts |1 | > indnkeyatts |1 | > indisunique |true | > indnullsnotdistinct|false | > indisprimary |true | > indisexclusion |false | > indimmediate |true | > indisclustered |false | > indisvalid |true | > indcheckxmin |false | > indisready |true | > indislive |true | > indisreplident |false | > indkey |{} | > indcollation |{} | > indclass |{} | > indoption |{} | > indexprs | | > indpred | | > Hmm, when I do the above on 15.14 I get: -[ RECORD 1 ]-------+------- indexrelid | 242209 indrelid | 242205 indnatts | 1 indnkeyatts | 1 indisunique | t indnullsnotdistinct | f indisprimary | t indisexclusion | f indimmediate | t indisclustered | f indisvalid | t indcheckxmin | f indisready | t indislive | t indisreplident | f indkey | 1 indcollation | 0 indclass | 3124 indoption | 0 indexprs | NULL indpred | NULL What is full(15.x) version of Postgres are you using? Is it the community version or a fork or SaaS? What do you get for queries below?: select * from pg_opclass where oid = 3124; select * from pg_opclass where opcname = 'int8_ops'; > >> How is the table populated with data? Might be a good idea to find out. Per a comment from Ron, does this lack of export happen every time you dump the table? > > Same answer as above. > -- Adrian Klaver adrian.klaver@aklaver.com