From: | Uday Bhaskar V <uday(dot)bhaskar579(at)gmail(dot)com> |
---|---|
To: | mmoncure(at)gmail(dot)com |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Indexes on UUID - Fragmentation Issue |
Date: | 2018-10-29 14:56:29 |
Message-ID: | CAFowjW1xV9EE4sDNOBE5Qgvuc4iN1Jttn1F0kBsO7J3QYEcJsQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
We have migrated our Database from Oracle to Postgresql there because of
replication we went for UUIDs. I have C function ready, will try.
Thanks,
Uday
On Mon, Oct 29, 2018 at 7:58 PM Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> On Mon, Oct 29, 2018 at 9:18 AM Uday Bhaskar V
> <uday(dot)bhaskar579(at)gmail(dot)com> wrote:
> >
> > 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.
>
> I think the right approach here is to build a custom extension. There
> are lots of examples of extensions within contrib and on pgxn.
> https://pgxn.org/ I guess there might be some utility for this type
> as UUID fragmetnation is a major problem (it's one of the reasons I
> discourage the use off UUID type indexes).
>
> merlin
>
From | Date | Subject | |
---|---|---|---|
Next Message | MichaelDBA | 2018-10-29 19:12:09 | Re: Indexes on UUID - Fragmentation Issue |
Previous Message | Andreas Karlsson | 2018-10-29 14:52:21 | Re: Indexes on UUID - Fragmentation Issue |