Re: Unprivileged access to pgsql functions? - Mailing list pgsql-general

From Bosco Rama
Subject Re: Unprivileged access to pgsql functions?
Date
Msg-id 4D715E19.8020506@boscorama.com
Whole thread Raw
In response to Re: Unprivileged access to pgsql functions?  (Matt Warner <matt@warnertechnology.com>)
Responses Re: Unprivileged access to pgsql functions?  (Matt Warner <matt@warnertechnology.com>)
List 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.

pgsql-general by date:

Previous
From: Matt Warner
Date:
Subject: Re: Unprivileged access to pgsql functions?
Next
From: John R Pierce
Date:
Subject: Re: Unprivileged access to pgsql functions?