> On 2 Dec 2024, at 11:00, Masahiko Sawada <sawada.m...@gmail.com> wrote:
> 
> The monotonicity of generated UUIDv7 is guaranteed only within a
> single backend.

I've addressed all items, except formatting a table... I can't build docs to 
make a reasonable judgement if the table looks OK.

Changes:
- restored leakproof flag of functions without arguments to be consistent with 
gen_random_uuid()
- improved uuidv7() synopsis

Also PFA a prototype of making uuidv7() ordered across all backends via keeping 
previous_ns in shared memory. IMO it's overcomplicating and RFC does not 
require such guarantees. Also, this would cost us several hundreds of ns on 
each uuidv7() call. I think we should focus on committing existing 
implementation and leave such things for a future improvement.

Thanks!


Best regards, Andrey Borodin.


Attachment: v41-0001-Add-UUID-version-7-generation-function.patch
Description: Binary data

Attachment: v41-0003-Make-UUIDv7-ordered-across-all-backends.patch
Description: Binary data

Attachment: v41-0002-Fixes-to-address-review-notes-by-Peter-Eisentrau.patch
Description: Binary data

Reply via email to