Re: Unprivileged access to pgsql functions?

From: Matt Warner <matt(at)warnertechnology(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unprivileged access to pgsql functions?
Date: 2011-03-04 21:55:34
Message-ID: AANLkTimg7K6rSSDvgR9x_Lc1MbYrUq=0o0vdKo5FCiKM@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Mar 4, 2011 at 1:49 PM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

> On 03/04/11 1:41 PM, 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.
>>
>>
> what schema is this function defined in? is that schema in the search
> path?
>
>
> l <http://www.postgresql.org/mailpref/pgsql-general>

The function was loaded as user postgres since it's a C-language module. The
definitions for most of the functions in the script have pg_catalog as the
prefix (e.g. CREATE FUNCTION pg_catalog.to_date(str text)).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bosco Rama 2011-03-04 21:56:58 Re: Unprivileged access to pgsql functions?
Previous Message Matt Warner 2011-03-04 21:51:25 Re: Unprivileged access to pgsql functions?