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 1tpyUE-00F2iU-9w for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 23:49:14 +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 1tpyUB-009Uvw-Sr for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 23:49:11 +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 1tpyUB-009Uva-0d for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 23:49:11 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpyU6-001Bzp-2c for pgsql-general@postgresql.org; Wed, 05 Mar 2025 23:49:10 +0000 Received: from phl-compute-13.internal (phl-compute-13.phl.internal [10.202.2.53]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4F043114023B; Wed, 5 Mar 2025 18:49:06 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-13.internal (MEProxy); Wed, 05 Mar 2025 18:49:06 -0500 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=1741218546; x=1741304946; bh=482DADjWBs42CIf22/BR9bOVXchS+ADz9dYXuS1biW0=; b= B7omJjChSQS8yJBA4S72BIi2z8BK+hajNTVdyyMTczeHgbdc5dy8D9X4eTJk5H5q SIRj3/2SXpaX6TyVbxdeAVFBbXCh33R0UP7+oQArXtTATh+ShJjmMXNJrT6tP5zh ojN6VR0umHPdS7DA0Urn2NznU+AhGp3QjZdWtyI6JJHExxVU5Ll7HGNlHAaAWK5M BErPXzfP4xkMuM6LOfmt57euZZMduJ58CXniPvxATnTvk9dd2zjFbQmUMEypeNLD wUKefTkPNF1vHCRVTUDCc2wr+kteC6M1RE18WzWM8EJNJGkLSRfqsdQ2gviV8TR+ hBiY9N24NcBr+DYgsDV0CQ== 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=1741218546; x=1741304946; bh=4 82DADjWBs42CIf22/BR9bOVXchS+ADz9dYXuS1biW0=; b=msJce7pXcL89s4o7U y2KotncMCdXUMrA/MtfJk3sDHFYxvJO+0npGZusRl1XPC8gPg/dMnXzy9WLtxtqi F6UPO6o+k1iTYPfO/k1+kkGUMcMzuQmMeAGWhW+VmG3ssxvhJ5Yy+99ibkkwpcr4 gvVNO+glsHR76Qmnj228vWdiPviFFPBaJSEPzzj+p9ATVSv3IoAnS0s5KV/TWtAe 925bbVyGQpgNqVIJTVd0R8mGDWi+cB3Qm+nsVHaEpQyvgkYaDn9rkYVgZxlc30C2 A+rQ3ukKucIgXhCqWwAT3vcIsc1uhPvYRW4SNfLONp6Wo7UrmLQR8hnoAblGwTMr LC7dQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdeivddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghv vghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrf grthhtvghrnhepffelgeeifefgveduhedthfekuedtffejveegffegjeevtdehgfduieet feehjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthht ohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhonhhljhhohhhnshhonh hjrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehp ohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Mar 2025 18:49:05 -0500 (EST) Message-ID: <36356aa1-1a5c-44af-a1c0-f190249812ca@aklaver.com> Date: Wed, 5 Mar 2025 15:49:05 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Duplicate Key Values To: Ron Johnson , pgsql-general References: 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 3/5/25 15:37, Ron Johnson wrote: > What does "and unique identifier" mean? > > (Creating a Primary Key constraint automatically creates a unique > no-nulls-allowed index on the column(s), so no other index is needed.) > > Can you show the table definition? > > Anyway, you /should/ be able to delete one of the duplicate node_id > records by specifying another column with a different value; > > On Wed, Mar 5, 2025 at 6:14 PM mark bradley > wrote: > > Hi Ron, > > The key is an integer.  I'm using pGAdmin4 and recently updated to > the latest version. 1) Did you not see duplicates with the old version of pgAdmin4? 2) What do you see if you use psql? 3) Did you upgrade/move the Postgres server or the underlying OS? 4) Have you tried reindexing the node_id field? > > The records are not all identical, some have NULL values of the > non-key for some unknown reason.  Here is a screenshot.  The key is > node_id, which I have specified as a key and unique identifier. > > > -- Adrian Klaver adrian.klaver@aklaver.com