pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Invent "trusted" extensions, and remove the pg_pltemplate catalo
Date: Thu, 30 Jan 2020 15:09:11 +0900
Message-ID: <20200130060911.GA130922@paquier.xyz> (raw)
In-Reply-To: <E1iwwzM-0001PF-Dh@gemulon.postgresql.org>
References: <E1iwwzM-0001PF-Dh@gemulon.postgresql.org>

Hi Tom,

On Wed, Jan 29, 2020 at 11:43:16PM +0000, Tom Lane wrote:
> Invent "trusted" extensions, and remove the pg_pltemplate catalog.
> 
> This patch creates a new extension property, "trusted".  An extension
> that's marked that way in its control file can be installed by a
> non-superuser who has the CREATE privilege on the current database,
> even if the extension contains objects that normally would have to be
> created by a superuser.  The objects within the extension will (by
> default) be owned by the bootstrap superuser, but the extension itself
> will be owned by the calling user.  This allows replicating the old
> behavior around trusted procedural languages, without all the
> special-case logic in CREATE LANGUAGE.  We have, however, chosen to
> loosen the rules slightly: formerly, only a database owner could take
> advantage of the special case that allowed installation of a trusted
> language, but now anyone who has CREATE privilege can do so.

morepork, prairiedog and curculio are complaining with the test
plperl_setup:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=morepork&dt=2020-01-30%2003%3A40%3A36
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=curculio&dt=2020-01-30%2003%3A30%3A37
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prairiedog&dt=2020-01-29%2023%3A45%3A48

Here is the relevant part:
 CREATE FUNCTION foo2() returns int language plperl as '2;';
+ERROR:  cannot allocate multiple Perl interpreters on this platform
+CONTEXT:  compilation of PL/Perl function "foo2" 
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (3+ messages)  latest in thread

Message-ID: <20200130060911.GA130922@paquier.xyz>
Permalink:  ../20200130060911.GA130922@paquier.xyz/
Also on:    postgresql.org/message-id/20200130060911.GA130922@paquier.xyz

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Invent "trusted" extensions, and remove the pg_pltemplate catalo
  In-Reply-To: <20200130060911.GA130922@paquier.xyz>
  References: <E1iwwzM-0001PF-Dh@gemulon.postgresql.org> <20200130060911.GA130922@paquier.xyz>

* 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