create extension pguuidv7;
then:
reshke=# select uuidv7();
uuidv7
--------------------------------------
019096b3-b9a0-711e-8f1e-41c35aae3615
(1 row)
reshke=# select uuidv7();
uuidv7
--------------------------------------
019096b3-baf4-70b9-b39b-953d69dd9e53
(1 row)
reshke=# select uuidv7();
uuidv7
--------------------------------------
019096b3-bbdd-731f-9187-28fc750fb141
(1 row)
reshke=# select uuidv7();
uuidv7
--------------------------------------
019096b3-bcc6-727d-b2ad-1a33759ddb37
(1 row)