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 1v7EeH-00H96g-Pd for pgsql-general@arkaria.postgresql.org; Fri, 10 Oct 2025 15:03: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 1v7EeF-00CgQp-HK for pgsql-general@arkaria.postgresql.org; Fri, 10 Oct 2025 15:03:12 +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 1v7EeE-00CgQg-Oo for pgsql-general@lists.postgresql.org; Fri, 10 Oct 2025 15:03:12 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v7EeC-001Qy8-2o for pgsql-general@lists.postgresql.org; Fri, 10 Oct 2025 15:03:11 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 8BDFA1D0001B; Fri, 10 Oct 2025 11:03:06 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 10 Oct 2025 11:03:06 -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=fm1; t=1760108586; x=1760194986; bh=drc6ObnhCRtVMRy+Rfu0BeZ8I64wJNger6i/OlVOqHg=; b= tj9WAQl3y6M474piVjP4tDkB677b1/xRJJ6dD7cBJKlNaHFFOiT0tiN+iGKhuy5b Gz5GzsBiv3dFfGms00vd3sDbur+2wr69+LyUfifQL+hK2vXQzuXbL/Fl9bI4R2MC iXaQNAeOYQ1b9nccxDp2BToIFjPp5GORuRNsX5bgTSmfcB0PWaj7ScJxXKg1ynxE SR8GKHd3gsjPMGvE9kDdVIDI+dXPkZtj7gOuJLjkiLLKSn0+9CjlIWdAT8S2rcag qg37v7L751+wYALlH42tW/7SZAiLbIltBHG6xVxx7evD2eM0yxMKSz8PVVCT/gE4 LDXF3WOXUSfSpPP3AarbgQ== 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=fm2; t=1760108586; x=1760194986; bh=d rc6ObnhCRtVMRy+Rfu0BeZ8I64wJNger6i/OlVOqHg=; b=NSyFeYTdzTdna/Skt auaWsYEFzIOzdv10kww/3wsUFnWaTXaVY1n0G+vE2U0TneDzgBD5iP0131V9yt26 6r8upwhMcUjhUDJEZ4PSAjpC7yYCm7KKPCaqB6nCVQ9KXFJDvOFo9hxbjaSYV8mU nyZQEFAKdQzw9zuX92uZ6Dv7e5YVXCQQtyX3N9p8RJNwbSp5jG9TTRrDkIUxpQ5E IcUQr4ifN7KoFkkIsWPz07w+ou2yVkdJPoi3gylHg5VqZXhwXbiZgU2VP/hGFZTN 12RKWVP815MukFvVsu38OZGi/ANMhYIv77KydQA+YuhhrOQftO7Voqk5X4p1CvpH yHHhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutdelfeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdel keehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeifihhmrdhroh huqhhurghrtheskhgstgdrsggvpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhes lhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Oct 2025 11:03:05 -0400 (EDT) Message-ID: Date: Fri, 10 Oct 2025 08:03:04 -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 10/10/25 05:28, Wim Rouquart wrote: > Internal > > Hi, > > Apologies for the late response, had other fish to fry... > > In response to your questions: > >> What is full(15.x) version of Postgres are you using? > > 15.14 > >> Is it the community version or a fork or SaaS? > > Standard release indeed, running on RHAT8 > >> What do you get for queries below?: > >> select * from pg_opclass where oid = 3124; > > |oid |opcmethod |opcname |opcnamespace|opcowner |opcfamily |opcintype |opcdefault |opckeytype > |3124 |403 |int8_ops |11 |10 |1976 |20 |true |0 > >> select * from pg_opclass where opcname = 'int8_ops'; > > |oid |opcmethod |opcname |opcnamespace |opcowner |opcfamily |opcintype |opcdefault |opckeytype| > |3124 |403 |int8_ops |11 |10 |1976 |20 |true |0 | > |10021 |405 |int8_ops |11 |10 |1977 |20 |true |0 | > Was the above done before or after you did the reindex? From original post: " When doing a pg_dump of one of our databases one of the tables primary keys doesn't get exported. Pg_dump just skips this index, without any warning whatsoever (verbose mode was used to doublecheck). When doing a REINDEX the issue is fixed. " That would imply that after the successful REINDEX and dump some action is taken that makes the index disappear. What is the table used for? Are there any sort of 'unusual' operations done on it? -- Adrian Klaver adrian.klaver@aklaver.com