1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2020-02-13 15:02:35 -05:00
parent 7fdd919ae7
commit eb67623c96
46 changed files with 174 additions and 4 deletions

View File

@ -3,3 +3,4 @@ comment = 'support for indexing common datatypes in GIN'
default_version = '1.3'
module_pathname = '$libdir/btree_gin'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'support for indexing common datatypes in GiST'
default_version = '1.5'
module_pathname = '$libdir/btree_gist'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data type for case-insensitive character strings'
default_version = '1.6'
module_pathname = '$libdir/citext'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data type for multidimensional cubes'
default_version = '1.4'
module_pathname = '$libdir/cube'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'text search dictionary template for integers'
default_version = '1.0'
module_pathname = '$libdir/dict_int'
relocatable = true
trusted = true

View File

@ -3,4 +3,5 @@ comment = 'calculate great-circle distances on the surface of the Earth'
default_version = '1.1'
module_pathname = '$libdir/earthdistance'
relocatable = true
trusted = true
requires = 'cube'

View File

@ -3,3 +3,4 @@ comment = 'determine similarities and distance between strings'
default_version = '1.1'
module_pathname = '$libdir/fuzzystrmatch'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data type for storing sets of (key, value) pairs'
default_version = '1.6'
module_pathname = '$libdir/hstore'
relocatable = true
trusted = true

View File

@ -3,4 +3,5 @@ comment = 'transform between hstore and plperl'
default_version = '1.0'
module_pathname = '$libdir/hstore_plperl'
relocatable = true
trusted = true
requires = 'hstore,plperl'

View File

@ -3,3 +3,4 @@ comment = 'functions, operators, and index support for 1-D arrays of integers'
default_version = '1.2'
module_pathname = '$libdir/_int'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data types for international product numbering standards'
default_version = '1.2'
module_pathname = '$libdir/isn'
relocatable = true
trusted = true

View File

@ -3,4 +3,5 @@ comment = 'transform between jsonb and plperl'
default_version = '1.0'
module_pathname = '$libdir/jsonb_plperl'
relocatable = true
trusted = true
requires = 'plperl'

View File

@ -3,3 +3,4 @@ comment = 'Large Object maintenance'
default_version = '1.1'
module_pathname = '$libdir/lo'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data type for hierarchical tree-like structures'
default_version = '1.1'
module_pathname = '$libdir/ltree'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'text similarity measurement and index searching based on trigrams'
default_version = '1.4'
module_pathname = '$libdir/pg_trgm'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'cryptographic functions'
default_version = '1.3'
module_pathname = '$libdir/pgcrypto'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'data type for representing line segments or floating-point intervals'
default_version = '1.3'
module_pathname = '$libdir/seg'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'functions that manipulate whole tables, including crosstab'
default_version = '1.0'
module_pathname = '$libdir/tablefunc'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'Triggered change notifications'
default_version = '1.0'
module_pathname = '$libdir/tcn'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'TABLESAMPLE method which accepts number of rows as a limit'
default_version = '1.0'
module_pathname = '$libdir/tsm_system_rows'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'TABLESAMPLE method which accepts time in milliseconds as a limit'
default_version = '1.0'
module_pathname = '$libdir/tsm_system_time'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'text search dictionary that removes accents'
default_version = '1.1'
module_pathname = '$libdir/unaccent'
relocatable = true
trusted = true

View File

@ -3,3 +3,4 @@ comment = 'generate universally unique identifiers (UUIDs)'
default_version = '1.1'
module_pathname = '$libdir/uuid-ossp'
relocatable = true
trusted = true