<productname>PostgreSQL</productname> includes one function to generate a UUID: PostgreSQLには、UUIDを生成するための関数が1つあります。
gen_random_uuid
() →uuid
This function returns a version 4 (random) UUID. This is the most commonly used type of UUID and is appropriate for most applications. この関数はバージョン4(ランダム)UUIDを返します。 これはUUIDのもっとも一般的な使い方で、大抵のアプリケーションに適しています。
The <xref linkend="uuid-ossp"/> module provides additional functions that implement other standard algorithms for generating UUIDs. uuid-osspモジュールはUUID生成のための他の標準アルゴリズムを実装した追加の関数を提供します。
<productname>PostgreSQL</productname> also provides the usual comparison operators shown in <xref linkend="functions-comparison-op-table"/> for UUIDs. PostgreSQLは表 9.1で示すUUIDのための通常の比較演算子を提供しています。