Re: Unprivileged access to pgsql functions?

From: Bosco Rama <postgres(at)boscorama(dot)com>
To: Matt Warner <matt(at)warnertechnology(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unprivileged access to pgsql functions?
Date: 2011-03-04 21:48:09
Message-ID: 4D715E19.8020506@boscorama.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matt Warner wrote:
> No luck:
>
> *** as postgres
> postgres=# GRANT all on function nvl(anyelement,anyelement) to public;
> GRANT
> postgres=#
>
> *** as unprivileged user
> offload=> select nvl(0,1);
> ERROR: function nvl(integer, integer) does not exist
> LINE 1: select nvl(0,1);
> ^
> HINT: No function matches the given name and argument types. You might need
> to add explicit type casts.

This looks like you defined the function in template1 *after* you created the
user's DB. Or never defined it there at all.

Try defining the function in the user's DB itself or, if able, recreate the
user's DB after defining it in template1.

HTH.

Bosco.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2011-03-04 21:49:24 Re: Unprivileged access to pgsql functions?
Previous Message Chris Browne 2011-03-04 21:46:03 Re: updating all records of a table