8000 Mark some contrib modules as "trusted". · postgrespro/postgres@eb67623 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb67623

Browse files
committed
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
1 parent 7fdd919 commit eb67623

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+174
-4
lines changed

contrib/btree_gin/btree_gin.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'support for indexing common datatypes in GIN'
33
default_version = '1.3'
44
module_pathname = '$libdir/btree_gin'
55
relocatable = true
6+
trusted = true

contrib/btree_gist/btree_gist.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'support for indexing common datatypes in GiST'
33
default_version = '1.5'
44
module_pathname = '$libdir/btree_gist'
55
relocatable = true
6+
trusted = true

contrib/citext/citext.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'data type for case-insensitive character strings'
33
default_version = '1.6'
44
module_pathname = '$libdir/citext'
55
relocatable = true
6+
trusted = true

contrib/cube/cube.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'data type for multidimensional cubes'
33
default_version = '1.4'
44
module_pathname = '$libdir/cube'
55
relocatable = true
6+
trusted = true

contrib/dict_int/dict_int.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'text search dictionary template for integers'
33
default_version = '1.0'
44
module_pathname = '$libdir/dict_int'
55
relocatable = true
6+
trusted = true

contrib/earthdistance/earthdistance.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ comment = 'calculate great-circle distances on the surface of the Earth'
33
default_version = '1.1'
44
module_pathname = '$libdir/earthdistance'
55
relocatable = true
6+
trusted = true
67
requires = 'cube'

contrib/fuzzystrmatch/fuzzystrmatch.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'determine similarities and distance between strings'
33
default_version = '1.1'
44
module_pathname = '$libdir/fuzzystrmatch'
55
relocatable = true
6+
trusted = true

contrib/hstore/hstore.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'data type for storing sets of (key, value) pairs'
33
default_version = '1.6'
44
module_pathname = '$libdir/hstore'
55
relocatable = true
6+
trusted = true

contrib/hstore_plperl/hstore_plperl.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ comment = 'transform between hstore and plperl'
33
default_version = '1.0'
44
module_pathname = '$libdir/hstore_plperl'
55
relocatable = true
6+
trusted = true
67
requires = 'hstore,plperl'

contrib/intarray/intarray.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ comment = 'functions, operators, and index support for 1-D arrays of integers'
33
default_version = '1.2'
44
module_pathname = '$libdir/_int'
55
relocatable = true
6+
trusted = true

0 commit comments

Comments
 (0)
0