From: Michael Glaesemann <grzm@myrealbox.com>
To: dpandey@secf.com
Cc: pgsql-general <pgsql-general@postgresql.org>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: [SQL] Permission denied for language pltclu
Date: Fri, 10 Jun 2005 19:26:43 +0900
Message-ID: <77E71A0A-10BF-486F-AE02-B4A697038C6B@myrealbox.com> (raw)
In-Reply-To: <20050610095655.0215752956@svr1.postgresql.org>
References: <20050610095655.0215752956@svr1.postgresql.org>
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.
Michael Glaesemann
grzm myrealbox com
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: grzm@myrealbox.com, dpandey@secf.com, pgsql-general@postgresql.org
Subject: Re: [SQL] Permission denied for language pltclu
In-Reply-To: <77E71A0A-10BF-486F-AE02-B4A697038C6B@myrealbox.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