From: | MichaelDBA <MichaelDBA(at)sqlexec(dot)com> |
---|---|
To: | Andreas Karlsson <andreas(at)proxel(dot)se> |
Cc: | "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Indexes on UUID - Fragmentation Issue |
Date: | 2018-10-29 19:12:09 |
Message-ID: | 5BD75B89.6040305@sqlexec.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
or prepend the UUID with a timestamp?
Regards,
Michael Vitale
> Andreas Karlsson <mailto:andreas(at)proxel(dot)se>
> Monday, October 29, 2018 10:52 AM
> On 10/29/2018 02:29 PM, Uday Bhaskar V wrote:> I have
>
> 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
>
> Uday Bhaskar V <mailto:uday(dot)bhaskar579(at)gmail(dot)com>
> Monday, October 29, 2018 9:29 AM
> Hi,
>
> I have searched in many postgres blogs for Sequential UUID generation,
> which can avoid Fragmentation issue.
>
> I did a POC(in postgres) with sequential UUID against Non sequential
> which has shown lot of different in space utilization and index size.
> Sql server has "newsequentialid" which generates sequential UUID. 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.
>
> Regards,
> Uday
From | Date | Subject | |
---|---|---|---|
Next Message | MichaelDBA | 2018-10-30 17:51:57 | SCRAM question |
Previous Message | Uday Bhaskar V | 2018-10-29 14:56:29 | Re: Indexes on UUID - Fragmentation Issue |