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 1vqZVW-00DRR1-26 for pgsql-general@arkaria.postgresql.org; Thu, 12 Feb 2026 16:25:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqZVV-009nzP-2t for pgsql-general@arkaria.postgresql.org; Thu, 12 Feb 2026 16:25:34 +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 1vqZVU-009nyk-2j for pgsql-general@lists.postgresql.org; Thu, 12 Feb 2026 16:25:34 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqZVS-00000000JPi-1bmB for pgsql-general@lists.postgresql.org; Thu, 12 Feb 2026 16:25:32 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 140A7EC0536; Thu, 12 Feb 2026 11:25:30 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 12 Feb 2026 11:25:30 -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=1770913530; x=1770999930; bh=J9y6oTQ8eM6b0YF/pPrqo8apdqUJmKFvwBYrW3h5uo8=; b= Jcef48Ckh3pGNKcR10/rJjqBITiWX9T9833apzakBclFaOxXx2FCRzh0vgJBLLYO Zi7xvOnd39/YHox5mZEXlNV/io44So4cTq+IweHBSDxFbG3Vbom0CwqIfw3vHHzy sjVDoI2LbJx68+0WnMK56+CaHxBS0Twfzabz7GJB6SxbIxDhgQdKR8ygJvJcI7Nw GCILYYRWMru9hLmx6Ba+Y7H3zBJyseV7Onv/JQDJSndG6UsT8uDDo3tBoR5O9CsB X2b4q1i0GDtEDIRK0Qcguujw6JDhdzes3a/UlQhZkwo9fK5KYVHjQ+nY1W3X0lDv 3Ihc4E5IlHx5+TzU8B50ug== 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=1770913530; x= 1770999930; bh=J9y6oTQ8eM6b0YF/pPrqo8apdqUJmKFvwBYrW3h5uo8=; b=v QHrwQSfJbQZNW5y2Sz9AfMuTtPaWTH3jziXU4AX5LOrBzEqEQgOVYUnlO6BJ1X70 OMZg0D03zhKDr+GJawwO6QrTIoekDte89QmabU+Jctzue4MR3hDDi8YTB4PfZvTy wg5wMq/CE5+Du9ZsgLFy8bNm3458fQ6WfQ1B0CUvoT/4KdPxqIFhkvA4f+OvXZ/4 nUI14H5FIghVZwoqzEpPxW4YRwlv5bAwV9jyen4NqWzAxEnUmv7+J5/oUBo0mnRy SUcR+iwdRl14bhEgE6sXAkC8jRxQ3yg9k+lWcieu7t0e5+dpQKyxNV6WkpMq1a1F eq/MIm/op07F264XU0snw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdehkeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhephfeviefhveelffeftdehudekveefhfeftdegieefveet fffgfeehtdfftedutedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgs pghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfihimhdrrh houhhquhgrrhhtsehksggtrdgsvgdprhgtphhtthhopehhthgrmhhfihgushesghhmrghi lhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Feb 2026 11:25:29 -0500 (EST) Message-ID: Date: Thu, 12 Feb 2026 08:25:28 -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: <1bfa0b6b-11a8-458f-a3f3-3f86574abc1d@aklaver.com> <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/11/26 01:05, Wim Rouquart wrote: > Internal > > I know the initial thread was started a while ago, but as was explained there the restore was done purely to have a playground db for this specific issue. I know the difference between pg_dump and pg_restore. > The issue is with pg_dump, not with pg_basebackup (as is proven as pg_basebackup and then the restore perfectly transfers the 'situation' as is between the production database and the playground database). Are you saying that you used pg_basebackp to create a test instance and then did a pg_dump from the test instance and used that output in a pg_restore to another database? > > I just did the dumps as requested, neither of them are showing the index create as expected. As requested being?: For table w/data: pg_dump -d some_db -U some_user -t name_hidden.bcf_work_type -f bcf_work_type.sql with table schema only: pg_dump -d some_db -U some_user -s -t name_hidden.bcf_work_type -f bcf_work_type.sql This will produce a plain text SQL script. To restore: psql -d some_other_db -U some_user -f bcf_work_type.sql Was this with the index in the originating database being in a functional state? As a general note you need to provide more supporting information when replying. This thread has gone through so many iterations of conditions it helps to know the exact conditions you are currently working under. -- Adrian Klaver adrian.klaver@aklaver.com