From: Tom Lane Date: Fri, 19 Mar 2004 19:13:26 +0000 (+0000) Subject: Add a usage example for has_function_privilege(). X-Git-Tag: REL8_0_0BETA1~957 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c7e6d2baa509cb71f46b323191194a88745e7d3;p=thirdparty%2Fpostgresql.git Add a usage example for has_function_privilege(). --- 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.