pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jaihind213@gmail.com
Subject: BUG #18320: Duplicate primary key records in table
Date: Thu, 01 Feb 2024 01:27:27 +0000
Message-ID: <18320-192ab7e8def42141@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18320
Logged by:          vishnu ch
Email address:      jaihind213@gmail.com
PostgreSQL version: 15.2
Operating system:   aarch64-apple-darwin21.6.0
Description:        

hi
i create table with primary key and inserted a few records but i am
surprised to see duplicate records having same primary key ?
is this a bug ? or am i missing something in postgres ?

i noticed other conversations/bugs like BUG #16938
---------------------
1. create table
CREATE TABLE foo (
    id integer PRIMARY KEY,
    name VARCHAR(255) NOT NULL
);

2. insert records:
insert into foo values (4, 'boo');
insert into foo values (6, 'asd');
insert into foo values (6, 'asd');
.....

3. select * from foo;

id|name|
--+----+
 6|xxx |
 5|yyy |
 5|yyy |
 6|xxx |
 4|boo |
 6|asd |
 6|asd |
 6|asd |
 4|boo |

---------------------------------------
Other details:
1. PostgreSQL 15.2 on aarch64-apple-darwin21.6.0, compiled by Apple clang
version 14.0.0 (clang-1400.0.29.102), 64-bit
2. Using https://postgresapp.com/ to launch postgres 15 on mac m1 - macOs
Monterey



view thread (3+ messages)  latest in thread

Message-ID: <18320-192ab7e8def42141@postgresql.org>
Permalink:  ../18320-192ab7e8def42141@postgresql.org/
Also on:    postgresql.org/message-id/18320-192ab7e8def42141@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, jaihind213@gmail.com
  Subject: Re: BUG #18320: Duplicate primary key records in table
  In-Reply-To: <18320-192ab7e8def42141@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox