Unmark gen_random_uuid() function leakproof
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-12-09T22:10:30Z
Lists: pgsql-hackers
Attachments
- v1-0001-Unmark-gen_random_uuid-function-leakproof.patch (application/octet-stream) patch v1-0001
Hi, While reviewing UUIDv7 patch[1], I realized gen_random_uuid() is marked leakproof even though it doesn't take arguments. The functions without arguments don't need to be marked leakproof in principle. This is the sole function that has no arguments and is listed in the "List of built-in leakproof functions" in opr_sanity.sql. I've attached the patch for fixing it and for better consistency with new UUID generation functions discussed on that thread. Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Commits
-
Unmark gen_random_uuid() function leakproof.
- 398d3e3b5b8f 18.0 landed