Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ookl8-0006Rs-UD for pgsql-admin@arkaria.postgresql.org; Sat, 29 Oct 2022 12:16:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ookl7-0001nJ-R1 for pgsql-admin@arkaria.postgresql.org; Sat, 29 Oct 2022 12:16:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ookl7-0001kL-FN for pgsql-admin@lists.postgresql.org; Sat, 29 Oct 2022 12:16:17 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ookl4-00070h-P8 for pgsql-admin@lists.postgresql.org; Sat, 29 Oct 2022 12:16:16 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id CECDE663EA; Sat, 29 Oct 2022 12:16:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5GtKZaDoE54V; Sat, 29 Oct 2022 12:16:12 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 3249B663AF; Sat, 29 Oct 2022 12:16:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: Duplicate data even with primary keys enabled From: Scott Ribe In-Reply-To: Date: Sat, 29 Oct 2022 06:16:01 -0600 Cc: Erik Wienhold , Teju Jakkidi vlogs , Holger Jakobs , pgsql-admin Content-Transfer-Encoding: 7bit Message-Id: <7AE0D708-37F6-46DA-9A7F-0AD22418979B@elevated-dev.com> References: <2102110489.726355.1667002718732@office.mailbox.org> To: abbas alizadeh X-Mailer: Apple Mail (2.3731.200.110.1.12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Actual table definition, sample query, and output, please. -- Scott Ribe scott_ribe@elevated-dev.com https://www.linkedin.com/in/scottribe/ > On Oct 29, 2022, at 5:20 AM, abbas alizadeh wrote: > > I faced the same issue last week. > We had duplicated records on primary key.