Re: Indexes on UUID - Fragmentation Issue

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема Re: Indexes on UUID - Fragmentation Issue
Дата
Msg-id 2d34b6d8-a22f-e5de-1cbe-f92012006de9@proxel.se
обсуждение исходный текст
Ответ на Indexes on UUID - Fragmentation Issue  (Uday Bhaskar V <uday.bhaskar579@gmail.com>)
Ответы Re: Indexes on UUID - Fragmentation Issue  (MichaelDBA <MichaelDBA@sqlexec.com>)
Список pgsql-performance
On 10/29/2018 02:29 PM, Uday Bhaskar V wrote:> I have
> created C function which can generate a sequential UUID, but I am not 
> sure how best I can use that in postgres.
> 
> I would really like to contribute to Postgres, If I can. Please let me 
> know your thoughts or plans regarding UUID generation.

How is it implemented? I can personally see two ways of generating 
sequential UUID:s. Either you use something like PostgreSQL's sequences 
or you can implement something based on the system time plus some few 
random bits which means they will be mostly sequential.

It could be worth checking on the hackers mailing list if there is any 
interest in this feature, but if it works like a sequence it should also 
probably be a sequence if it is ever going to be accepted into the core.

For your own use I recommend doing like Merlin suggested and write an 
extension. As long as you know a bit of C they are easy to write.

Andreas


В списке pgsql-performance по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Indexes on UUID - Fragmentation Issue
Следующее
От: Uday Bhaskar V
Дата:
Сообщение: Re: Indexes on UUID - Fragmentation Issue