Re: has_function_privilege() - Mailing list pgsql-bugs

From Tom Lane
Subject Re: has_function_privilege()
Date
Msg-id 25849.1079720040@sss.pgh.pa.us
Whole thread Raw
In response to has_function_privilege()  ("Stefan Hans" <shans@tanagra.de>)
List pgsql-bugs
"Stefan Hans" <shans@tanagra.de> writes:
> Seems like a bug to me.

> my_example=# select has_function_privilege('postgres', 'cash_cmp', 'execute');
> ERROR:  expected a left parenthesis

Maybe a docs bug.  You need a complete function signature, since after
all there could be many functions named cash_cmp:

regression=# select has_function_privilege('postgres', 'cash_cmp(money,money)', 'execute');
 has_function_privilege
------------------------
 t
(1 row)

The documentation for has_function_privilege() is desperately in need of
an example, methinks.  [ checks CVS logs... ]  Hmm, looks like this is
my fault, too :-(.  I'll get on it.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Neil Conway
Date:
Subject: Re: PostgreSQL & Red Hat AS 2.1
Next
From: Theodore Petrosky
Date:
Subject: Re: PostgreSQL & Red Hat AS 2.1