mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update UUID v7 function
This commit is contained in:
@@ -167,10 +167,10 @@ $$
|
|||||||
;
|
;
|
||||||
-- Description
|
-- Description
|
||||||
COMMENT ON FUNCTION
|
COMMENT ON FUNCTION
|
||||||
public.jsonb_diff_val
|
public.timestamp_from_uuid_v7
|
||||||
IS 'Generate UUID v7, Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ ';
|
IS 'extract the timestamp from the uuid.';
|
||||||
|
|
||||||
create or replace function uuid_generate_v7()
|
create or replace function public.uuid_generate_v7()
|
||||||
returns uuid
|
returns uuid
|
||||||
as $$
|
as $$
|
||||||
begin
|
begin
|
||||||
@@ -194,5 +194,5 @@ $$
|
|||||||
language plpgsql volatile;
|
language plpgsql volatile;
|
||||||
-- Description
|
-- Description
|
||||||
COMMENT ON FUNCTION
|
COMMENT ON FUNCTION
|
||||||
public.jsonb_diff_val
|
public.uuid_generate_v7
|
||||||
IS 'extract the timestamp from the uuid.';
|
IS 'Generate UUID v7, Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/';
|
||||||
|
Reference in New Issue
Block a user