mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
Unmark gen_random_uuid() function leakproof.
The functions without arguments don't need to be marked leakproof. This commit unmarks gen_random_uuid() leakproof for consistency with upcoming UUID generation functions. Also, this commit adds a regression test to prevent reintroducing such cases. Bump catalog version. Reported-by: Peter Eisentraut Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAD21AoBE1ePPWY1NQEgk3DkqjYzLPZwYTzCySHm0e%2B9a69PfZw%40mail.gmail.com
This commit is contained in:
@@ -399,6 +399,13 @@ FROM pg_proc p1 JOIN pg_namespace pn
|
||||
WHERE nspname = 'pg_catalog' AND proleakproof
|
||||
ORDER BY 1;
|
||||
|
||||
-- Check that functions without argument are not marked as leakproof.
|
||||
SELECT p1.oid::regprocedure
|
||||
FROM pg_proc p1 JOIN pg_namespace pn
|
||||
ON pronamespace = pn.oid
|
||||
WHERE nspname = 'pg_catalog' AND proleakproof AND pronargs = 0
|
||||
ORDER BY 1;
|
||||
|
||||
-- restore normal output mode
|
||||
\a\t
|
||||
|
||||
|
||||
Reference in New Issue
Block a user