diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 48e5809ce5a..4812dd76405 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -23030,6 +23030,10 @@ SELECT has_function_privilege('joeuser', 'myfunc(int, text)', 'execute'); the role (that is, the right to do SET ROLE), while USAGE denotes whether the privileges of the role are immediately available without doing SET ROLE. + WITH ADMIN OPTION or WITH GRANT + OPTION can be added to either of these privilege types to + test whether the ADMIN privilege is held (all + four spellings test the same thing). This function does not allow the special case of setting user to public, because the PUBLIC pseudo-role can never be a member of real roles.