pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Gunther <inbox@bucksvsbytes.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: create function (plpgsql): permission denied
Date: Mon, 07 Apr 2003 08:53:33 -0400
Message-ID: <3E9174CD.7000306@bucksvsbytes.com> (raw)
In-Reply-To: <1049717743.1128.21.camel@vitoria.intra.cet.pt>
References: <1049715542.1132.14.camel@vitoria.intra.cet.pt>
	<1049717743.1128.21.camel@vitoria.intra.cet.pt>

 From psql <databasename> -U<databaseowner>, issue:
    GRANT USAGE ON LANGUAGE plpgsql to <desireduser>;
You may also need (to allow creation of the function)
    GRANT ALL ON SCHEMA <schemaname> TO <desireduser>;

This will grant <desireduser> the usage of plpgsql even if it is untrusted.

For attribute explanations, see 
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=catalog-pg-language.htm 


John Gunther
Bucks vs Bytes Inc


Pedro Salazar wrote:

>Greetings,
>
>On Mon, 2003-04-07 at 12:39, Pedro Salazar wrote:
>  
>
>>select * from pg_language ;
>>lanname | lanispl | lanpltrusted | lanplcallfoid | lanvalidator | lanacl
>>----------+---------+--------------+---------------+--------------+--------
>> plpgsql  | t       | f            |         20893 |            0 | 
>>    
>>
>
>I updated the 'lanpltrusted' attribute to true, and now I can create
>functions. 
>
>But, is it possible that only a group or a specified list of users have
>permission to create plpgsql functions instead trust the language for
>all users?
>
>thanks,
>Pedro Salazar.
>  
>




view thread (5+ messages)  latest in thread

Message-ID: <3E9174CD.7000306@bucksvsbytes.com>
Permalink:  ../3E9174CD.7000306@bucksvsbytes.com/
Also on:    postgresql.org/message-id/3E9174CD.7000306@bucksvsbytes.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: inbox@bucksvsbytes.com
  Subject: Re: create function (plpgsql): permission denied
  In-Reply-To: <3E9174CD.7000306@bucksvsbytes.com>
  References: <1049715542.1132.14.camel@vitoria.intra.cet.pt> <1049717743.1128.21.camel@vitoria.intra.cet.pt> <3E9174CD.7000306@bucksvsbytes.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox