UUID and system functions
uuidv7() -- time-ordered uuid
gen_random_uuid() -- uuid
uuidv4() -- uuid
version() -- text
random() -- float8
now() -- timestamptz, classified as stable
clock_timestamp() -- timestamptz, volatile
random, uuidv7, uuidv4, and gen_random_uuid are volatile. version() and now() are
stable within a single command: all evaluations reuse the same value during execution.
clock_timestamp() is volatile and reads the clock on each evaluation. Both use UTC and the
server environment’s injected clock.