Re: UUID v7 - Mailing list pgsql-hackers

From Przemysław Sztoch
Subject Re: UUID v7
Date
Msg-id a9674a88-63d1-91fc-f86e-11959e829570@sztoch.pl
Whole thread Raw
In response to Re: UUID v7  (Andrey Borodin <x4mmm@yandex-team.ru>)
List pgsql-hackers
Andrey Borodin wrote on 1/16/2024 1:15 PM:
Sergey, Przemysław, Jelte, thanks for your feedback.
Here's v9. Changes:
1. Swapped type of the argument to timestamptz in gen_uuid_v7()
Please update docs part about optional timestamp argument.
2. Renamed get_uuid_v7_time() to uuid_v7_time()
Please rename uuid_v7_time to uuid_time() and add support for v1 and v6.
If version is incompatible then return NULL.
3. Added  uuid_ver() and uuid_var().
Looks good.
But for me, throwing an error is problematic. Wouldn't it be better to return -1.
What do you think?
Best regards, Andrey Borodin.
--
Przemysław Sztoch | Mobile +48 509 99 00 66

pgsql-hackers by date:

Previous
From: Maiquel Grassi
Date:
Subject: RE: New Window Function: ROW_NUMBER_DESC() OVER() ?
Next
From: Matthias van de Meent
Date:
Subject: Re: cleanup patches for incremental backup