Skip to content

Option for GEN_UUID to generate v7 UUID #7980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
r1gm opened this issue Jan 27, 2024 · 7 comments · Fixed by #8167
Closed

Option for GEN_UUID to generate v7 UUID #7980

r1gm opened this issue Jan 27, 2024 · 7 comments · Fixed by #8167

Comments

@r1gm
Copy link

r1gm commented Jan 27, 2024

UUID v7 more index-able than UUID v4(Current used in FirebirdSQL, CMIIW), please bring support for UUID v7 in FirebirdSql.

@mrotteveel
Copy link
Member

As far as I'm aware, the relevant RFC hasn't been published yet, so as of now, there is no official v7 UUID, and implementation at this time would be premature.

@sergeyprokhorenko
Copy link

sergeyprokhorenko commented Jan 28, 2024

However, no changes will be made to the text of the RFC. Therefore, no one waits for official approval:
Rust
PostgreSQL
JavaScript
Google
etc.

@michaelpq
Copy link

PostgreSQL

FWIW, I doubt that any PostgreSQL committer will be OK to push a patch to add support for UUIDv7 without an approved RFC. There is too much risk in finishing with a non-compliant behavior.

@piervalli
Copy link

Hi All
In Postgresql after many revisitions uuid7 is approved for next version.

https://commitfest.postgresql.org/47/4388/

@basid-irk
Copy link

RFC 9562 Universally Unique IDentifiers (UUIDs)

RFC: 9562
Obsoletes: 4122
Category: Standards Track
Published: May 2024
ISSN: 2070-1721

@reevespaul
Copy link
Contributor

I know gen_uuid() generates UUID v4 but surely the new syntax should also support gen_uuid(4).

And is there any plan to backport this feature to v4 and v5?

@mrotteveel
Copy link
Member

@reevespaul The syntax accepts GEN_UUID(), which uses 4 and GEN_UUID(4) and GEN_UUID(7).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants