Re: UUID v7

From: "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: Sergey Prokhorenko <sergeyprokhorenko(at)yahoo(dot)com(dot)au>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>, Michael Paquier <michael(at)paquier(dot)xyz>, Aleksander Alekseev <aleksander(at)timescale(dot)com>, pgsql-hackers mailing list <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Przemysław Sztoch <przemyslaw(at)sztoch(dot)pl>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Mat Arye <mat(at)timescaledb(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>, Junwang Zhao <zhjwpku(at)gmail(dot)com>
Subject: Re: UUID v7
Date: 2024-10-31 18:45:49
Message-ID: 7C6E9E4F-9519-48BC-8988-FD1CED83E887@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 31 Oct 2024, at 22:15, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
>
> On Sat, Oct 26, 2024 at 10:05 AM Andrey M. Borodin <x4mmm(at)yandex-team(dot)ru> wrote:
>
> I think we typically avoid this kind of check failure by assigning
> uuidv7() and uuidv7(interval) different C functions that call the
> common function. That is, we have pg_proc entries like:
>

Done.

>>>
>>> It's odd to me that only uuid_extract_timestamp() supports UUID v6 in
>>> spite of not supporting UUID v6 generation. I think it makes more
>>> sense to support UUID v6 generation as well, if the need for it is
>>> high.
>>
>> RFC urges to use UUIDv7 instead of UUIDv6 when possible. I'm fine with providing implementation, it's trivial. PFA patch with implementation.
>>
>
> My point is that we should either support full functionality for
> UUIDv6 (such as generation and extraction) or none of them. I'm not
> really sure we want UUIDv6 as well, but if we want it, it should be
> implemented in a separate patch.

Make sense. I've removed all traces of v6.

Thanks!

Best regards, Andrey Borodin.

Attachment Content-Type Size
v29-0001-Implement-UUID-v7.patch application/octet-stream 17.5 KB

In response to

  • Re: UUID v7 at 2024-10-31 18:15:36 from Masahiko Sawada

Responses

  • Re: UUID v7 at 2024-10-31 19:04:23 from Stepan Neretin
  • Re: UUID v7 at 2024-10-31 23:00:47 from Masahiko Sawada

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2024-10-31 18:50:58 Re: Count and log pages set all-frozen by vacuum
Previous Message Aleksander Alekseev 2024-10-31 18:19:57 Re: [PATCH] Improve code coverage of network address functions