Re: Removing pg_pltemplate and creating "trustable" extensions
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Robert Haas <robertmhaas@gmail.com>
Date: 2020-01-29T18:19:25Z
Lists: pgsql-hackers
Attachments
- 0001-invent-trusted-extensions-5.patch (text/x-diff) patch 0001
- 0002-make-pls-pure-extensions-5.patch (text/x-diff) patch 0002
- 0003-interpret-create-lang-as-create-ext-5.patch (text/x-diff) patch 0003
- 0004-remove-pg_pltemplate-5.patch (text/x-diff) patch 0004
I wrote: > Stephen Frost <sfrost@snowman.net> writes: >> On Tue, Jan 28, 2020 at 16:17 Tom Lane <tgl@sss.pgh.pa.us> wrote: >>> On the other hand, there's the point that lots of people have probably >>> given out schema-CREATE privilege to users whom they wouldn't necessarily >>> wish to trust with INSTALL privilege. Schema-CREATE is a pretty harmless >>> privilege, INSTALL much less so. >> CREATE doesn't just control the ability to create schemas these days- it >> was extended to cover publications also not that long ago. > Oh really ... hm, that does make it a much bigger deal than I was > thinking. Given that, I don't think there's any huge objection to > attaching this to CREATE, at least till we get around to a more > significant redesign. Here's a v5 that drops the new predefined role and allows trusted-extension installation when you have CREATE on the current database. There's no other changes except a bit of documentation wordsmithing. Barring further complaints, I'm going to push this fairly soon. regards, tom lane
Commits
-
Invent "trusted" extensions, and remove the pg_pltemplate catalog.
- 50fc694e4374 13.0 landed