pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Gunther <inbox@bucksvsbytes.com>
To: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: create function (plpgsql): permission denied
Date: Mon, 07 Apr 2003 12:45:40 -0400
Message-ID: <3E91AB34.1090702@bucksvsbytes.com> (raw)
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>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
<br>
<br>
<blockquote type="cite"
 cite="mid1049726289.1132.38.camel@vitoria.intra.cet.pt">
  <pre wrap="">when I make grant usage on language 'plpgsql' to my user, I get this
error:

ERROR:  language "plpgsql" is not trusted, if I must trust my language, I won't need the grant usage of
language to my user, will I?</pre>
</blockquote>
Yes, I miswrote that sentence. The language must be trusted for any
non-superuser to ever use it. Just because the language is trusted,
though, should not automatically allow users access to it without a
GRANT. The fact that they do not need GRANTing, though, is either a bug
or a documentation error.<br>
<blockquote type="cite"
 cite="mid1049726289.1132.38.camel@vitoria.intra.cet.pt">
  <pre wrap="">

So

BTW, if my user is already the owner of schema, is really need the grant
all on schema to my user?</pre>
</blockquote>
You're correct. I was allowing for &lt;desireduser&gt; to not be the
schema owner<br>
<blockquote type="cite"
 cite="mid1049726289.1132.38.camel@vitoria.intra.cet.pt">
  <pre wrap="">

thanks,
Pedro Salazar.

On Mon, 2003-04-07 at 13:53, John Gunther wrote:
  </pre>
</blockquote>
<blockquote type="cite"
 cite="mid1049726289.1132.38.camel@vitoria.intra.cet.pt">
  <blockquote type="cite">
    <pre wrap=""> From psql &lt;databasename&gt; -U&lt;databaseowner&gt;, issue:
    GRANT USAGE ON LANGUAGE plpgsql to &lt;desireduser&gt;;
You may also need (to allow creation of the function)
    GRANT ALL ON SCHEMA &lt;schemaname&gt; TO &lt;desireduser&gt;;

This will grant &lt;desireduser&gt; the usage of plpgsql even if it is untrusted.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>




view thread (5+ messages)

Message-ID: <3E91AB34.1090702@bucksvsbytes.com>
Permalink:  ../3E91AB34.1090702@bucksvsbytes.com/
Also on:    postgresql.org/message-id/3E91AB34.1090702@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, pedro-b-salazar@ptinovacao.pt
  Subject: Re: create function (plpgsql): permission denied
  In-Reply-To: <3E91AB34.1090702@bucksvsbytes.com>
  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> <3E91AB34.1090702@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