Re: gen_random_uuid key collision

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: jesusthefrog <jesusthefrog(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: gen_random_uuid key collision
Date: 2021-09-02 23:35:17
Message-ID: a453d48d-0f98-8ed6-df47-9c94749ac632@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/2/21 4:25 PM, jesusthefrog wrote:
> Hello, I'm hoping someone might be able to shed a little light on a
> strange situation I encountered recently.

>
> Most of the time this is fine, but one specific table has recently
> started repeatedly having inserts fail because of a unique constraint
> violation involving the primary key. The table only has ~10,000 rows,
> but I'll sometimes see two or three collisions in a single day. No other
> table (even those with many, many more rows) exhibit this issue.

What is the table schema as returned by \d <table> in psql?

> Anyone have any thoughts on this?
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message jesusthefrog 2021-09-02 23:38:07 Re: gen_random_uuid key collision
Previous Message jesusthefrog 2021-09-02 23:25:17 gen_random_uuid key collision