X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C08FF528C1 for ; Fri, 10 Jun 2005 07:32:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77279-06 for ; Fri, 10 Jun 2005 10:32:48 +0000 (GMT) Received: from mx5.net.nih.gov (mailfwd.nih.gov [165.112.130.36]) by svr1.postgresql.org (Postfix) with ESMTP id 3C9EF5288D for ; Fri, 10 Jun 2005 07:32:47 -0300 (ADT) Received: from mx5.net.nih.gov (localhost [127.0.0.1]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j5AAWnaq020874 for ; Fri, 10 Jun 2005 06:32:49 -0400 Received: from [128.231.145.14] (holmes.nhgri.nih.gov [128.231.145.14]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j5AAWnKd020871; Fri, 10 Jun 2005 06:32:49 -0400 In-Reply-To: <20050610095655.0215752956@svr1.postgresql.org> References: <20050610095655.0215752956@svr1.postgresql.org> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <0ff6b4042414d68d62a956cd6c5c2c92@mail.nih.gov> Content-Transfer-Encoding: quoted-printable Cc: Postgresql-General list From: Sean Davis Subject: Re: [SQL] Permission denied for language pltclu Date: Fri, 10 Jun 2005 06:31:34 -0400 To: X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/513 X-Sequence-Number: 79221 On Jun 10, 2005, at 5:51 AM, Dinesh Pandey wrote: > > Hi Richard/ Michael > =A0 > Thanks for your great help. > =A0 > I got the problem. > =A0 > Actually, I was not getting the cause of this problem, because it was=20= > working properly at our end. > =A0 > Actually this problem occurs when the function is being created by the=20= > user who has not created the current database. > =A0 > Solution: The database must be created by the user who is creating the=20= > pltcl function? Right Dinesh, The user creating the function must be a superuser. The question to=20 ask is: How do I make a user a superuser? The answer is in the=20 documentation at these two links. It suffices to ALTER USER to have=20 CREATEUSER privileges to be a superuser. http://www.postgresql.org/docs/8.0/static/user-attributes.html http://www.postgresql.org/docs/8.0/static/sql-alteruser.html I hope this clarifies things a bit. Sean=