Re: Duplicate Key Values

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Duplicate Key Values
Date: 2025-03-05 17:50:13
Message-ID: CANzqJaDWzZ4O10QZi6w__N5q7gzwcZANfu0DxA7UOpFwqAqTyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Mar 5, 2025 at 12:36 PM mark bradley <markbradyju(at)outlook(dot)com>
wrote:

> Although I did not enter them, somehow duplicate primary key values have
> appeared in one of my tables.
>

Is it a text/varchar column? Has the distro been upgraded "recently", or
maybe streamed from an older Linux system to a newer Linux system?

> I can't remove the offending rows because the key is a foreign key in
> another table.
>
> What to do?
>

Are the records completely (i.e., all columns) identical?

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2025-03-05 23:37:19 Re: Duplicate Key Values
Previous Message Igor Korot 2025-03-05 17:49:53 Re: Error on query execution