Re: [SQL] Permission denied for language pltclu

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To:
Cc: <dpandey(at)secf(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>, PostgreSQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [SQL] Permission denied for language pltclu
Date: 2005-06-10 10:32:34
Message-ID: 04F2B068-40A5-4C32-82E3-A4E0C0D82910@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql


On Jun 10, 2005, at 7:26 PM, Michael Glaesemann wrote:

>
> On Jun 10, 2005, at 6:51 PM, Dinesh Pandey wrote:
>
>> Actually this problem occurs when the function is being created by
>> the user who has not created the current database.
>>
>>
>>
>> Solution: The database must be created by the user who is creating
>> the pltcl function? Right
>>
> This is a coincidence.
>
> Only a PostgreSQL superuser can create a database, so a user who
> created the database will be a superuser. Only a superuser can
> create a function with an untrusted language. So, the same
> superuser can both create a database and create the function using
> pltclu. However, *any* PostgreSQL superuser should be able to
> create such a function, regardless of whether they created the
> database or not.

Ach! Should have checked the docs before I mailed. I'm wrong about
only superusers creating databases. Richard's got it all right. :)

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-06-10 10:37:57 Re: [SQL] Permission denied for language pltclu
Previous Message Sean Davis 2005-06-10 10:31:34 Re: [SQL] Permission denied for language pltclu

Browse pgsql-sql by date

  From Date Subject
Next Message Tino Wildenhain 2005-06-10 10:37:57 Re: [SQL] Permission denied for language pltclu
Previous Message Sean Davis 2005-06-10 10:31:34 Re: [SQL] Permission denied for language pltclu