You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

458 B

CREATE OR REPLACE FUNCTION "public"."uuid_generate_v4"()  
RETURNS "pg_catalog"."uuid" AS '$libdir/uuid-ossp', 'uuid_generate_v4' 
LANGUAGE c VOLATILE STRICT  
COST 1;

openGauss写法

CREATE OR REPLACE FUNCTION "public"."uuid_generate_v4"() returns varchar  
LANGUAGE plpgsql  
NOT FENCED NOT SHIPPABLE  
AS $function$ DECLARE  
BEGIN  
RETURN (select upper(md5(random()::text || clock_timestamp()::text) :: varchar));  
END$function$;