Re: [HACKERS] unprivileged contrib and pl install (formerly tsearch - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] unprivileged contrib and pl install (formerly tsearch
Date
Msg-id 12141.1169684400@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] unprivileged contrib and pl install (formerly tsearch  (Jeremy Drake <pgsql@jdrake.com>)
Responses Re: [HACKERS] unprivileged contrib and pl install  (Jeremy Drake <pgsql@jdrake.com>)
List pgsql-patches
Jeremy Drake <pgsql@jdrake.com> writes:
> On Wed, 24 Jan 2007, Jeremy Drake wrote:
>> That would be great, and also it would be great to be able to CREATE
>> LANGUAGE as a regular user for a trusted pl that is already
>> compiled/installed.

> Something like the attached (simple) change to allow CREATE LANGUAGE by
> unprivileged users for trusted languages already present in pg_pltemplate.

If it were merely a matter of removing an error check I think we would
have done it already.  However, pltemplate will have all the languages
in it whether the DBA wants to allow them to be used or not; so I'd say
that there really needs to be *some* sort of privilege check here.
What that is and how to implement it are the hard parts.

            regards, tom lane

pgsql-patches by date:

Previous
From: Jeremy Drake
Date:
Subject: Re: [HACKERS] unprivileged contrib and pl install (formerly tsearch
Next
From: Roman Kononov
Date:
Subject: Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling