Re: UUID v7 - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: UUID v7
Date
Msg-id CAGECzQTrHF_PDNyHTKwa0Et+D2MstbhtPfS25EQT6wqC1MrfZA@mail.gmail.com
Whole thread Raw
In response to Re: UUID v7  (Przemysław Sztoch <przemyslaw@sztoch.pl>)
Responses Re: UUID v7
List pgsql-hackers
On Tue, 16 Jan 2024 at 22:02, Przemysław Sztoch <przemyslaw@sztoch.pl> wrote:
> But replace uuidv7_extract_time(uuid) with uuid_extract_time(uuid) - function should be able extract timestamp from
v1/v6/v7

I'm fine with this.

> I would highly recommend to add:
> uuidv5(namespace uuid, name text) -> uuid
> using uuid_generate_v5 from uuid-ossp extension (https://www.postgresql.org/docs/current/uuid-ossp.html)
> There is an important version and it should be included into the main PG code.

I think adding more uuid versions would probably be desirable. But I
don't think it makes sense to clutter this patchset with that. I feel
like on this uuidv7 patchset we've had enough discussion that it could
reasonably get into PG17, but I think adding even more uuid versions
to this patchset would severely reduce the chances of that happening.



pgsql-hackers by date:

Previous
From: Przemysław Sztoch
Date:
Subject: Re: UUID v7
Next
From: Jim Nasby
Date:
Subject: Re: Emit fewer vacuum records by reaping removable tuples during pruning