Re: Sequential UUID Generation - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: Sequential UUID Generation
Date
Msg-id 1a4e6c4b-93c9-4d6b-2e5c-91e4de9a5207@2ndquadrant.com
Whole thread Raw
In response to Re: Sequential UUID Generation  (Uday Bhaskar V <uday.bhaskar579@gmail.com>)
List pgsql-hackers
On 11/19/18 2:08 PM, Uday Bhaskar V wrote:
> I tried below function as which can be used as default to column. But 
> every time we need to created 2 sequences, 1st one takes care of the 
> first 8 bytes and 2nd takes care of the 2nd part of the UUID. I have not 
> tested index and space utilization. I have to examine this. This might 
> not be completely unique in the nature. but still trying for the best.
> 

I got a bit bored a couple of days ago, so I wrote an extension 
generating UUIDs based on either a sequence or timestamp. See

   https://blog.2ndquadrant.com/sequential-uuid-generators/

for an explanation and some simple test results.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Continue work on changes to recovery.conf API
Next
From: Stephen Frost
Date:
Subject: Re: Continue work on changes to recovery.conf API