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 1vqx2J-003sxQ-0K for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 17:33:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqx2I-00FfCd-1D for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 17:32:59 +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.96) (envelope-from ) id 1vqx2H-00FfCU-0e for pgsql-general@lists.postgresql.org; Fri, 13 Feb 2026 17:32:58 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqx2E-00000000Wft-1QkW for pgsql-general@lists.postgresql.org; Fri, 13 Feb 2026 17:32:57 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 167511400075; Fri, 13 Feb 2026 12:32:52 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Fri, 13 Feb 2026 12:32:52 -0500 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=fm2; t=1771003972; x=1771090372; bh=X4WC6KrUk2zddh8PwhremRCjFYL8ouLdiYTNsQdTUrI=; b= eTV8LqK7D40AJELJeALC0vbgAG5sVLYVFrB2xjJ1A2hACvNEiOvmNWKQgIVqWF5T 4WKv8w7PYdNnOdSAoA8JQCP0+bPYeScpPsJhDOHqsSK3VKf2qq5KvLCjPqywoMsQ HAElZfd19SPJ8F5EfM6q+RCkvgtHOABXYSksCVh7Wy/dM2vE0EnzXM1k4oGDrq9N 8y3vHU/Kov1ILyDeeUOIjr3+n4VuupH6dN8nwfNs5PGrreQFCCi9OMYsxENTlZcb uY4MhzOJPj6s9g31M2HldqdYNtZsLvfEbqwcF74UYWtzCzxmV2m2s6V3bRr6mqVW VPa35ueyLhPQfNdrikMPRQ== 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=fm3; t=1771003972; x= 1771090372; bh=X4WC6KrUk2zddh8PwhremRCjFYL8ouLdiYTNsQdTUrI=; b=n RupG0lspW9aZ4lrxkctCLUTN9lJXqCdhgYZXml83DiulP/3pkFyfBX61XH5xHucN qf6+xYFwz/72HlPEQkT6LGT6HGzEbxuFbJ4p7mJUoJWkmJx0gn2rYNbfEHcqVVie p3Pxvrs8XYfL89UoqdidEfkbCHCiuQkYw3ZNEQFVvkBg84idOZlqbFWB0T7zs7D1 fSFjI4lsBtnrUNtgMZuMjal1R5xd5F+0PHb3dgt75rCIobX+ZIjvfljs50SrJKlU B8Uo10+EzVEgNc3UWp+QzGgk3KlqkG6tFWyqrlqPKa7zCEoA8vF8nzx3aoKtawXh y8PjmRqDZgzYA9avO86ug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdekkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepheeujeejleehvdfgudfgfeffudelvedtiedtgfetuefg vdektefhudejveegieeinecuffhomhgrihhnpehksggtrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepfihimhdrrhhouhhquhgrrhhtsehksggtrdgsvgdprhgtphht thhopehhthgrmhhfihgushesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqd hgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Feb 2026 12:32:50 -0500 (EST) Message-ID: <25b5291f-a3d3-4655-a3d3-57f28b70ec5a@aklaver.com> Date: Fri, 13 Feb 2026 09:32:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Index (primary key) corrupt? To: Wim Rouquart , Greg Sabino Mullane Cc: "pgsql-general@lists.postgresql.org" References: <5043ff13-2f39-4a80-a8f8-6765746b6a89@aklaver.com> <58221272-d684-4799-a113-d5a5031a0b05@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 2/13/26 8:27 AM, Wim Rouquart wrote: > Internal > > 1) ) It won't be included with the CREATE TABLE statement per:- > > Yes, let's keep it at: it's not in the dumpfile anywhere. > >> 2) The issue seems to be not the dump, but the non-functional state of the index on the source database. > >> Is there any indication of why that is happening? > > Not as far as I know. So the REINDEX on the source PK is prompted by it not showing up on the target? > >> Also what error do you get on the source database that tells you the PK is not working? > > None, only noticed the issue because of the datarefresh to another instance where it turned out the primary key was not created in the target (because it was not in the dumpfile). On the test instance you set up with pg_basebackup and that has the corrupted index what happens if you try to INSERT a record with a duplicate id? > >> I hope this clears out any confusion. >> >> -----Original Message----- > Adrian Klaver > adrian.klaver@aklaver.com > > Disclaimer