Re: Sequential UUID Generation
От
Tomas Vondra
Тема
Re: Sequential UUID Generation
Дата
Msg-id
1a4e6c4b-93c9-4d6b-2e5c-91e4de9a5207@2ndquadrant.com
Ответ на
Re: Sequential UUID Generation (Uday Bhaskar V)
Список
Дерево обсуждения
Sequential UUID Generation Uday Bhaskar V <uday.bhaskar579@gmail.com>
Re: Sequential UUID Generation Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Sequential UUID Generation Uday Bhaskar V <uday.bhaskar579@gmail.com>
Re: Sequential UUID Generation Adam Brusselback <adambrusselback@gmail.com>
Re: Sequential UUID Generation Sehrope Sarkuni <sehrope@jackdb.com>
Re: Sequential UUID Generation Uday Bhaskar V <uday.bhaskar579@gmail.com>
Re: Sequential UUID Generation Tomas Vondra <tomas.vondra@2ndquadrant.com>
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 по дате отправления