From: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
To: John Gunther <inbox@bucksvsbytes.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: create function (plpgsql): permission denied
Date: 07 Apr 2003 15:38:09 +0100
Message-ID: <1049726289.1132.38.camel@vitoria.intra.cet.pt> (raw)
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>
Hi John,
when I make grant usage on language 'plpgsql' to my user, I get this
error:
ERROR: language "plpgsql" is not trusted
So, if I must trust my language, I won't need the grant usage of
language to my user, will I?
BTW, if my user is already the owner of schema, is really need the grant
all on schema to my user?
thanks,
Pedro Salazar.
On Mon, 2003-04-07 at 13:53, John Gunther wrote:
> 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.
--
PS
pedro-b-salazar@ptinovacao.pt
PGP:0E129E31D803BC61
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: pedro-b-salazar@ptinovacao.pt, inbox@bucksvsbytes.com
Subject: Re: create function (plpgsql): permission denied
In-Reply-To: <1049726289.1132.38.camel@vitoria.intra.cet.pt>
References: <1049715542.1132.14.camel@vitoria.intra.cet.pt> <1049717743.1128.21.camel@vitoria.intra.cet.pt> <3E9174CD.7000306@bucksvsbytes.com> <1049726289.1132.38.camel@vitoria.intra.cet.pt>
* 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