From 6c7e6d2baa509cb71f46b323191194a88745e7d3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 19 Mar 2004 19:13:26 +0000 Subject: [PATCH] Add a usage example for has_function_privilege(). --- doc/src/sgml/func.sgml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 68d0a8a9540..ccd430a97ff 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -6881,15 +6881,19 @@ SELECT has_table_privilege('myschema.mytable', 'select'); arguments are analogous to has_table_privilege. When specifying a function by a text string rather than by OID, the allowed input is the same as for the regprocedure data type. - The desired access privilege type must currently evaluate to + The desired access privilege type must evaluate to EXECUTE. + An example is: + +SELECT has_function_privilege('joeuser', 'myfunc(int, text)', 'execute'); + has_language_privilege checks whether a user can access a procedural language in a particular way. The possibilities for its arguments are analogous to has_table_privilege. - The desired access privilege type must currently evaluate to + The desired access privilege type must evaluate to USAGE. -- 2.39.5