←back to thread

230 points craigkerstiens | 1 comments | | HN request time: 0.2s | source
1. Dylan16807 ◴[] No.42579936[source]
> The Postgres patch solves the problem by repurposing 12 bits of the UUID’s random component to increase the precision of the timestamp down to nanosecond granularity (filling rand_a above), which in practice is too precise to contain two UUIDv7s generated in the same process.

A millisecond divided by 4096 is not a nanosecond. It's about 250 nanoseconds.