UUID Functions

UUID Functions

  • gen_random_uuid()

    Description: Generate a random version 4 uuid.

    Return type: uuid

    Example:

    openGauss=# select gen_random_uuid();
               gen_random_uuid            
    --------------------------------------
     a81069af-f9bd-4008-848f-d0350a758a22
    (1 row)