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 1ooVx7-0007xm-BR for pgsql-admin@arkaria.postgresql.org; Fri, 28 Oct 2022 20:27:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ooVx5-0007Er-V7 for pgsql-admin@arkaria.postgresql.org; Fri, 28 Oct 2022 20:27:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooVx5-0007EV-KA for pgsql-admin@lists.postgresql.org; Fri, 28 Oct 2022 20:27:39 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooVwz-00012P-3F for pgsql-admin@lists.postgresql.org; Fri, 28 Oct 2022 20:27:39 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 71E7FE65A4; Fri, 28 Oct 2022 20:27:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4uccM7nG8Bav; Fri, 28 Oct 2022 20:27:30 +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 02EEFE6588; Fri, 28 Oct 2022 20:27:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Duplicate data even with primary keys enabled From: Scott Ribe In-Reply-To: Date: Fri, 28 Oct 2022 14:27:29 -0600 Cc: Holger Jakobs , pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <032E52B8-00C2-431D-BBAF-DCFCCEA817D2@elevated-dev.com> References: <59B1180A-4A4B-4A1A-B50A-C9D9B41AA67D@gmail.com> <74e777cb-c332-3db7-7c4a-784d408227d6@jakobs.com> To: Teju Jakkidi vlogs X-Mailer: Apple Mail (2.3696.120.41.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 28, 2022, at 2:15 PM, Teju Jakkidi vlogs = wrote: >=20 > Also, the values that we are seeing is as below: >=20 > COL1 COL2 COL3 COL4 COL5 COL6 > 1 3456 76542 5 ABC 1234 > 1 3456 76542 5 ABC 1234 > 2 9872 89765 0 FGT 1234 > 3 6547 78659 7 JHL 8790 >=20 > We already defined COL1, COL2, COL3 as primary keys, but still as you = see above in the table output, the first 2 rows has exactly same = combination for those 3 rows. What query are you running?