Re: gen_random_uuid key collision - Mailing list pgsql-general

From Adrian Klaver
Subject Re: gen_random_uuid key collision
Date
Msg-id a453d48d-0f98-8ed6-df47-9c94749ac632@aklaver.com
Whole thread Raw
In response to gen_random_uuid key collision  (jesusthefrog <jesusthefrog@gmail.com>)
Responses Re: gen_random_uuid key collision  (jesusthefrog <jesusthefrog@gmail.com>)
List 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.klaver@aklaver.com



pgsql-general by date:

Previous
From: jesusthefrog
Date:
Subject: gen_random_uuid key collision
Next
From: jesusthefrog
Date:
Subject: Re: gen_random_uuid key collision