Re: BUG #17173: Primary Key ignored resulting in duplicate values - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #17173: Primary Key ignored resulting in duplicate values
Date
Msg-id CAKFQuwYqwn+GVZPDOjS5seQEvG3yEDxpkZjSUX+bxbv4=xoLyg@mail.gmail.com
Whole thread Raw
In response to BUG #17173: Primary Key ignored resulting in duplicate values  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Wed, Sep 1, 2021 at 4:44 AM PG Bug reporting form <noreply@postgresql.org> wrote:
    CONSTRAINT priceupdate_pkey PRIMARY KEY (id)
        USING INDEX TABLESPACE pgwlicsdb

We have other tables that also have duplicates for primary key.

Could you please provide feedback with regards to my query.


Remove the duplicates and then reindex the backing unique index.

If the duplicates are being created while running a supported version of PostgreSQL, and they are all using the same tablespace, consider that it is good odds whatever filesystem your tablespace is on may have issues.  As you don't seem to be using a supported version you should probably fix that deficiency first though, and see whether new problematic records get created in the future.

David J.


pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BUG #17174: ERROR: column "min_value" does not exist at character 19 2021-09
Next
From: Ram Pratap Maurya
Date:
Subject: RE: BUG #17174: ERROR: column "min_value" does not exist at character 19 2021-09