Re: Unmark gen_random_uuid() function leakproof - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Unmark gen_random_uuid() function leakproof
Date
Msg-id bwavjkortw4uhac3sp5w5r5fkyn3p6el7esxmxiadlm2qhrdih@3ql4v5r4l2zp
Whole thread Raw
List pgsql-hackers
Hi,

On 2024-12-09 14:10:30 -0800, Masahiko Sawada wrote:
> 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.

Seems like it'd make sense to add a test to opr_sanity.sql so we don't
reintroduce such cases?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Fix tiny memory leaks
Next
From: "David G. Johnston"
Date:
Subject: Re: Document NULL