Re: BUG #17135: duplicate key value violates unique constraint

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: jaineelrc141199(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17135: duplicate key value violates unique constraint
Date: 2021-08-05 14:35:11
Message-ID: CAKFQuwa9PwJdFjRaW=oF7K6-XNg8Q6Tf20rxaqsK-wQPoBPwTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Aug 5, 2021 at 7:24 AM PG Bug reporting form <noreply(at)postgresql(dot)org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference: 17135
> Logged by: Jaineel Chauhan
> Email address: jaineelrc141199(at)gmail(dot)com
> PostgreSQL version: 12.6
> Operating system: ubuntu 20.04
> Description:
>
> Please give solution for below problem ::
>
> duplicate key value violates unique constraint "mail_followers_pkey"
> DETAIL: Key (id)=(1490) already exists.
>
>
DELETE FROM mail_followers WHERE id = 1490;

The above will probably work...but it also probably isn't something you
should consider seriously. But it's the best I can come up with giving the
fact you've provided zero context about how/where/when this error is
occuring.

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-08-05 15:19:09 Re: Can not cancel a call to a function that has opened a refcursor
Previous Message PG Bug reporting form 2021-08-05 14:11:37 BUG #17135: duplicate key value violates unique constraint