X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C52D9475F3D for ; Mon, 7 Apr 2003 10:40:35 -0400 (EDT) Received: from exchange_geral.intra.cet.pt (unknown [194.65.138.11]) by postgresql.org (Postfix) with ESMTP id F3397475F34 for ; Mon, 7 Apr 2003 10:40:33 -0400 (EDT) Received: from [10.112.80.105] (10.112.80.105 [10.112.80.105]) by exchange_geral.intra.cet.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2JDCZSAX; Mon, 7 Apr 2003 15:49:02 +0100 Subject: Re: create function (plpgsql): permission denied From: Pedro Salazar To: John Gunther Cc: pgsql-admin 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> Content-Type: text/plain Organization: Portugal Telecom Inovação, S.A. Message-Id: <1049726289.1132.38.camel@vitoria.intra.cet.pt> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 07 Apr 2003 15:38:09 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.7 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,HEADER_8BITS,IN_REP_TO, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/71 X-Sequence-Number: 8226 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 -U, issue: > GRANT USAGE ON LANGUAGE plpgsql to ; > You may also need (to allow creation of the function) > GRANT ALL ON SCHEMA TO ; > > This will grant the usage of plpgsql even if it is untrusted. -- PS pedro-b-salazar@ptinovacao.pt PGP:0E129E31D803BC61