BUG #18320: Duplicate primary key records in table - Mailing list pgsql-bugs

From David G. Johnston
Subject BUG #18320: Duplicate primary key records in table
Date
Msg-id CAKFQuwaL1hiJ7F2HgXqbGqWdAp3ZidZ0jkkGjGZyRj=YThEzNg@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18320: Duplicate primary key records in table  (vishnu rao <jaihind213@gmail.com>)
List pgsql-bugs
Not a PostgreSQL bug - we didn’t break unique constraints without anyone noticing during development.

On Wednesday, January 31, 2024, vishnu rao <jaihind213@gmail.com> wrote:

2. run spark code with mode overwrite. do a select u will see 3 rows.

A internet search leads me to believe overwrite operates by dropping and recreating the table.  Apparently the new one doesn’t have the constraint.

I suggest you enable statement logging on the server and see exactly what your library is doing behind the scenes on your behalf.  At least DDL related stuff.

David J.

pgsql-bugs by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: v17 Possible Union All Bug
Next
From: Andrei Lepikhov
Date:
Subject: Re: v17 Possible Union All Bug