pgsql: Mark some contrib modules as "trusted".

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Mark some contrib modules as "trusted".

Tom Lane-2
Mark some contrib modules as "trusted".

This allows these modules to be installed into a database without
superuser privileges (assuming that the DBA or sysadmin has installed
the module's files in the expected place).  You only need CREATE
privilege on the current database, which by default would be
available to the database owner.

The following modules are marked trusted:

btree_gin
btree_gist
citext
cube
dict_int
earthdistance
fuzzystrmatch
hstore
hstore_plperl
intarray
isn
jsonb_plperl
lo
ltree
pg_trgm
pgcrypto
seg
tablefunc
tcn
tsm_system_rows
tsm_system_time
unaccent
uuid-ossp

In the future we might mark some more modules trusted, but there
seems to be no debate about these, and on the whole it seems wise
to be conservative with use of this feature to start out with.

Discussion: https://postgr.es/m/32315.1580326876@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eb67623c965b4759a96309cdb58a17339fc5d401

Modified Files
--------------
contrib/btree_gin/btree_gin.control             |  1 +
contrib/btree_gist/btree_gist.control           |  1 +
contrib/citext/citext.control                   |  1 +
contrib/cube/cube.control                       |  1 +
contrib/dict_int/dict_int.control               |  1 +
contrib/earthdistance/earthdistance.control     |  1 +
contrib/fuzzystrmatch/fuzzystrmatch.control     |  1 +
contrib/hstore/hstore.control                   |  1 +
contrib/hstore_plperl/hstore_plperl.control     |  1 +
contrib/intarray/intarray.control               |  1 +
contrib/isn/isn.control                         |  1 +
contrib/jsonb_plperl/jsonb_plperl.control       |  1 +
contrib/lo/lo.control                           |  1 +
contrib/ltree/ltree.control                     |  1 +
contrib/pg_trgm/pg_trgm.control                 |  1 +
contrib/pgcrypto/pgcrypto.control               |  1 +
contrib/seg/seg.control                         |  1 +
contrib/tablefunc/tablefunc.control             |  1 +
contrib/tcn/tcn.control                         |  1 +
contrib/tsm_system_rows/tsm_system_rows.control |  1 +
contrib/tsm_system_time/tsm_system_time.control |  1 +
contrib/unaccent/unaccent.control               |  1 +
contrib/uuid-ossp/uuid-ossp.control             |  1 +
doc/src/sgml/btree-gin.sgml                     |  6 ++++++
doc/src/sgml/btree-gist.sgml                    |  6 ++++++
doc/src/sgml/citext.sgml                        |  6 ++++++
doc/src/sgml/contrib.sgml                       | 17 +++++++++++++----
doc/src/sgml/cube.sgml                          |  6 ++++++
doc/src/sgml/dict-int.sgml                      |  6 ++++++
doc/src/sgml/earthdistance.sgml                 |  6 ++++++
doc/src/sgml/fuzzystrmatch.sgml                 |  6 ++++++
doc/src/sgml/hstore.sgml                        | 11 +++++++++++
doc/src/sgml/intarray.sgml                      |  6 ++++++
doc/src/sgml/isn.sgml                           |  6 ++++++
doc/src/sgml/json.sgml                          |  7 +++++++
doc/src/sgml/lo.sgml                            |  6 ++++++
doc/src/sgml/ltree.sgml                         |  6 ++++++
doc/src/sgml/pgcrypto.sgml                      |  6 ++++++
doc/src/sgml/pgtrgm.sgml                        |  6 ++++++
doc/src/sgml/seg.sgml                           |  6 ++++++
doc/src/sgml/tablefunc.sgml                     |  6 ++++++
doc/src/sgml/tcn.sgml                           |  6 ++++++
doc/src/sgml/tsm-system-rows.sgml               |  6 ++++++
doc/src/sgml/tsm-system-time.sgml               |  6 ++++++
doc/src/sgml/unaccent.sgml                      |  6 ++++++
doc/src/sgml/uuid-ossp.sgml                     |  6 ++++++
46 files changed, 174 insertions(+), 4 deletions(-)