Re: has_function_privilege()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Stefan Hans" <shans(at)tanagra(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: has_function_privilege()
Date: 2004-03-19 18:14:00
Message-ID: 25849.1079720040@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Stefan Hans" <shans(at)tanagra(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Theodore Petrosky 2004-03-20 13:31:41 Re: PostgreSQL & Red Hat AS 2.1
Previous Message Tom Lane 2004-03-19 15:23:37 Re: PostgreSQL & Red Hat AS 2.1