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 1tFoGG-00GFCY-E4 for pgsql-general@arkaria.postgresql.org; Tue, 26 Nov 2024 05:37:20 +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 1tFoGE-0043F9-Qn for pgsql-general@arkaria.postgresql.org; Tue, 26 Nov 2024 05:37:18 +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 1tFoGD-0043C5-FT for pgsql-general@lists.postgresql.org; Tue, 26 Nov 2024 05:37:18 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFoFn-003qLz-0f for pgsql-general@postgresql.org; Tue, 26 Nov 2024 05:37:15 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5E9811140138; Tue, 26 Nov 2024 00:36:49 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Tue, 26 Nov 2024 00:36:49 -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=fm3; t=1732599409; x=1732685809; bh=RHP2iUzp/IW/ijZGVuDpGc0NmbQHrSuwMa/8JO3886A=; b= hg9z0SmUGTX2UlpsBGCRutuK2zFDvDRbibzd2rXl9qgfNufpJNzHDLPv9WLUFznx v1rKemuyH0wdNmgpxQcMjsA0H20gGaOnyYBE5K5Y+SsOPR5M7CwTTIkWhQggL6+x mZssjm3Y+j8xUv1nz8jfpDc1t1++z+nLsd7qYVFZJABeeWqmfoFjqTYWg6wwG4Ay tLx75PkEw/UiWgD+7XXYP7AjZpY3WleWIzujJ5G8IXFcIUjPU/1PoY7F2BuWE2wc AjFP7G9bFGnZswQgSu+mxKht8oCAiyDqzmaKhWgFylNgWkoioVHY94i8k56JzaGS w78NzUlsAGTvTPgVnmsRcw== 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=1732599409; x= 1732685809; bh=RHP2iUzp/IW/ijZGVuDpGc0NmbQHrSuwMa/8JO3886A=; b=q Cizxc6pLyEQkx2rkYVhlmoE0UQhkEqPWBkKivgaK5ZaJJkR+SsC4N/g8KqvD4lpY Zm8H3JYr2ZpxGbEoAmjAVYQuWaEZRFwDCI+NtTTsWv3O6tAe0lvteLq6GfjDrhRq NaK7HGVAtXenejnXzq9+IJglUGqwYHpsDh3aHfNQK+VN2ayw+2djdge1w8VFEYy6 FwgNTeknVND2/o6778/x7b+2cVmGLEFdbuWv7tEjyWG80i0bTNYC82ODrQJtjbec Kt+ozR8lNqg5FXXqg7yTfrtvvaShVGKGLjhGwNt+uRz70AX8n59PT9r1AGEr3W9E IMJiP6SAB1pJcZsK7HYBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeeigdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefg heekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehshhgrshhhihguhhgrrhhrvgguugihtddtudesghhmrghilhdrtghomhdp rhgtphhtthhopegrjhhithdrfigrnhhgkhhhvghmsehgmhgrihhlrdgtohhmpdhrtghpth htohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Nov 2024 00:36:48 -0500 (EST) Message-ID: <24e0eb89-9cb3-4fc5-baa9-af1bb8036796@aklaver.com> Date: Mon, 25 Nov 2024 21:36:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unique key constraint Issue To: shashidhar Reddy Cc: ajit wangkhem , pgsql-general References: <42ed36a1-2581-43f7-a606-2c139929b38f@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: 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 11/25/24 19:07, shashidhar Reddy wrote: > Hi Adrian, > > Thank you for your response. > > I don't think index corrupted as I can generate the ddl script from the What DDL script? > index and the index is still in use when we query. See Tom Lanes post for more detail. Short version the index will still 'work' except for the part where it lets in duplicate entries. >  To rebuild the index we are still removing duplicate entries. But > nothing found in logs. > > On Mon, 25 Nov, 2024, 9:30 pm Adrian Klaver, > wrote: > > On 11/25/24 00:44, shashidhar Reddy wrote: > > Hi Ajit, > > > > Thank you for your reply! > > > > The result of the query is same across all servers and yes streaming > > replication does not have any issue but the question is how did > > duplicate values entered when there unique key in place. > > Corrupted index? > > Have you tried doing a REINDEX? > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com