Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ix311-0001mq-9N for pgsql-committers@arkaria.postgresql.org; Thu, 30 Jan 2020 06:09:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ix30z-0002j6-Kz for pgsql-committers@arkaria.postgresql.org; Thu, 30 Jan 2020 06:09:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ix30z-0002iz-DQ for pgsql-committers@lists.postgresql.org; Thu, 30 Jan 2020 06:09:21 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ix30w-0000Jt-7p for pgsql-committers@lists.postgresql.org; Thu, 30 Jan 2020 06:09:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4B6264C3; Thu, 30 Jan 2020 01:09:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 30 Jan 2020 01:09:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=tKo7egv4onfzPLUdGT9Y77dakpt kk64eiZ5JKF55psc=; b=clHI7jV5Jlj9LeaLr75fk518yvW/IWQaYgQYnZsfKuk 3KrXSSEJpxcUmoQ5lliGZjkM5Ca7ElV/d8cenGUxrpoz79gKdu0dUPcQU6u0VPuk frCWU8k//tg9XROdhg3KM68VSWiiOAbCTmhsuuYUvqqaBKRt2MLnjErKQxPG8K6l xvCEKiewwgap2gSQi4UOhnHhg5E8mvm1JsbfD5a0XQN+e2mbYzAWFiZy8WX6jwRF oJySVjDD6ybIclBWFkmcmjKkrkKkweIz2TqwgniWmW7Fz8EeJn14t/qq7bYK9yYd YM4ra8Qpf8QQddLKJIkRdw6ptCMdRhVyQ/ej881X2YQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=tKo7eg v4onfzPLUdGT9Y77dakptkk64eiZ5JKF55psc=; b=ljsqqrnAGEMffn10fkuvQH vhKupSWo8dfAaDgPES9KMYwGDLVfilNel+SWFrwFa/pjexH+nRzQzXjMis5yyPGH T9DoG5So6hqbnWllnAJuWAmquvVphrFHFXifJVq4OyhlYH9v56HOz52p8idBa9lK esCA4AxLUySWzBrlJkxz3ld8NNiApCJxnobIlO4eX2i71N28phOs97rGOqWPAn89 LGqu+SbgzC+FqSHgcaanGfLN03BbHMgpptaruac+tSs6GwkUUcbQn5LqecFL8/w3 NbnZFNXHdyfCa7AFOi2vMcovw1wXtyRIc3IT3rJyHQ4MvUBe6spcAawn77WtlOdA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrfeejgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuffhomhgrihhnpehpoh hsthhgrhgvshhqlhdrohhrghenucfkphepudduuddruddtvddrudektddrudekheenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvg hlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id A63553060A08; Thu, 30 Jan 2020 01:09:13 -0500 (EST) Date: Thu, 30 Jan 2020 15:09:11 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Invent "trusted" extensions, and remove the pg_pltemplate catalo Message-ID: <20200130060911.GA130922@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Tom, On Wed, Jan 29, 2020 at 11:43:16PM +0000, Tom Lane wrote: > Invent "trusted" extensions, and remove the pg_pltemplate catalog. >=20 > 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=3Dmorepork&dt=3D202= 0-01-30%2003%3A40%3A36 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dcurculio&dt=3D202= 0-01-30%2003%3A30%3A37 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dprairiedog&dt=3D2= 020-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"=20 -- Michael --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4ycwYACgkQnvQgOdby QH3cfQ/9GuZMwoGhlFnOcp8nM9NEpQeeRPXbrn+fdz5BXkUXlfbCl2XaWnQUPlSu kDpCeJQLusN0jjmCkiCIHY5vpKpRbyv9AdpvbR56mQiG+qiwyHm/B6NgyY3sXWht 6to1cweM6C3d/EW5CJa+1MExEpuhetyH3+Bx5asQnmssvtXyhQHs30bhqPMxB/UW F+GIXQJI94UpvC7o71LgUy7lmrCOy7yAXgsKBeQPSYboMcbHsArK7Z71GXwueGfw k13nlQOU20faZUUZz1GKE1ehGVp+vr7dA4jGWhNciM8Le4tuh57YOzjJ1X+eKoUF FXDLgfWT+pa4I5ehaqrdt1ywXgLyYBQxxXldRZBgUGwJ+VuNBnHnCSqkS4jducBa bo4xti2leqC1neDmkJMuyt1tmnHsqJD1P6dLhWOHYFmteeNN3W8S4uyenuuTw0Gq KVP1WmKdbiDgISlaqW0uiBWpayiUEpvsOGZOmRMr82AfQwP1eguogXr+v/siTt6p eVKZL2uvDRl9xPG4gqgjM/AS1SA16z99t9Tdrruy+JBiD+5VyceqbGYQ4on1Ptlk ofJgR/cEbUif/mOR+/RALnNzEYUBxa+XIqIjjL2knk4rTeDFe5YuXwsmalRNF7kx 9KoC7IwndjfebbKxB//eCSLCf8xNwg73txIqaScLqly457v9aR0= =yrej -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--